Skip to content

Commit 1b49093

Browse files
committed
Updated versions to 1.1.0, 1.1.0-rc1 and 1.1.0-beta7
1 parent 4118050 commit 1b49093

File tree

50 files changed

+145
-218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+145
-218
lines changed

anthropic-examples/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>dev.langchain4j</groupId>
88
<artifactId>anthropic-examples</artifactId>
9-
<version>1.0.1-beta6</version>
9+
<version>1.1.0-rc1</version>
1010

1111
<properties>
1212
<maven.compiler.source>17</maven.compiler.source>
@@ -19,13 +19,13 @@
1919
<dependency>
2020
<groupId>dev.langchain4j</groupId>
2121
<artifactId>langchain4j-anthropic</artifactId>
22-
<version>1.0.1-beta6</version>
22+
<version>1.1.0-rc1</version>
2323
</dependency>
2424

2525
<dependency>
2626
<groupId>dev.langchain4j</groupId>
2727
<artifactId>langchain4j</artifactId>
28-
<version>1.0.1</version>
28+
<version>1.1.0</version>
2929
</dependency>
3030

3131
<dependency>

azure-open-ai-customer-support-agent-example/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>dev.langchain4j</groupId>
1414
<artifactId>azure-open-ai-customer-support-agent-example</artifactId>
15-
<version>1.0.1-beta6</version>
15+
<version>1.1.0-beta7</version>
1616

1717
<properties>
1818
<java.version>17</java.version>
@@ -23,19 +23,19 @@
2323
<dependency>
2424
<groupId>dev.langchain4j</groupId>
2525
<artifactId>langchain4j-spring-boot-starter</artifactId>
26-
<version>1.0.1-beta6</version>
26+
<version>1.1.0-beta7</version>
2727
</dependency>
2828

2929
<dependency>
3030
<groupId>dev.langchain4j</groupId>
3131
<artifactId>langchain4j-azure-open-ai-spring-boot-starter</artifactId>
32-
<version>1.0.1-beta6</version>
32+
<version>1.1.0-beta7</version>
3333
</dependency>
3434

3535
<dependency>
3636
<groupId>dev.langchain4j</groupId>
3737
<artifactId>langchain4j-embeddings-all-minilm-l6-v2</artifactId>
38-
<version>1.0.1-beta6</version>
38+
<version>1.1.0-beta7</version>
3939
</dependency>
4040

4141
<dependency>

azure-open-ai-customer-support-agent-example/src/main/java/dev/langchain4j/example/CustomerSupportAgentApplication.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ EmbeddingModel embeddingModel() {
9090
}
9191

9292
@Bean
93-
EmbeddingStore<TextSegment> embeddingStore(EmbeddingModel embeddingModel, ResourceLoader resourceLoader) throws IOException {
93+
EmbeddingStore<TextSegment> embeddingStore(EmbeddingModel embeddingModel,
94+
ResourceLoader resourceLoader,
95+
TokenCountEstimator tokenCountEstimator) throws IOException {
9496

9597
// Normally, you would already have your embedding store filled with your data.
9698
// However, for the purpose of this demonstration, we will:
@@ -106,7 +108,7 @@ EmbeddingStore<TextSegment> embeddingStore(EmbeddingModel embeddingModel, Resour
106108
// 4. Convert segments into embeddings
107109
// 5. Store embeddings into embedding store
108110
// All this can be done manually, but we will use EmbeddingStoreIngestor to automate this:
109-
DocumentSplitter documentSplitter = DocumentSplitters.recursive(100, 0, new AzureOpenAiTokenCountEstimator("gpt-4o-mini"));
111+
DocumentSplitter documentSplitter = DocumentSplitters.recursive(100, 0, tokenCountEstimator);
110112
EmbeddingStoreIngestor ingestor = EmbeddingStoreIngestor.builder()
111113
.documentSplitter(documentSplitter)
112114
.embeddingModel(embeddingModel)
@@ -117,6 +119,11 @@ EmbeddingStore<TextSegment> embeddingStore(EmbeddingModel embeddingModel, Resour
117119
return embeddingStore;
118120
}
119121

122+
@Bean
123+
TokenCountEstimator tokenCountEstimator() {
124+
return new AzureOpenAiTokenCountEstimator("gpt-4o-mini");
125+
}
126+
120127
public static void main(String[] args) {
121128
SpringApplication.run(CustomerSupportAgentApplication.class, args);
122129
}

azure-open-ai-examples/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>dev.langchain4j</groupId>
88
<artifactId>azure-open-ai-examples</artifactId>
9-
<version>1.0.1-beta6</version>
9+
<version>1.1.0-rc1</version>
1010

1111
<properties>
1212
<maven.compiler.source>17</maven.compiler.source>
@@ -19,21 +19,21 @@
1919
<dependency>
2020
<groupId>dev.langchain4j</groupId>
2121
<artifactId>langchain4j-azure-open-ai</artifactId>
22-
<version>1.0.1-beta6</version>
22+
<version>1.1.0-rc1</version>
2323
</dependency>
2424

2525
<dependency>
2626
<groupId>dev.langchain4j</groupId>
2727
<artifactId>langchain4j</artifactId>
28-
<version>1.0.1</version>
28+
<version>1.1.0</version>
2929
</dependency>
3030

3131
<dependency>
3232
<groupId>com.azure</groupId>
3333
<artifactId>azure-identity</artifactId>
3434
<version>1.13.0</version>
35-
<scope>compile</scope>
3635
</dependency>
36+
3737
<dependency>
3838
<groupId>org.tinylog</groupId>
3939
<artifactId>tinylog-impl</artifactId>

bedrock-examples/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>dev.langchain4j</groupId>
88
<artifactId>bedrock-examples</artifactId>
9-
<version>1.0.1-beta6</version>
9+
<version>1.1.0-rc1</version>
1010

1111
<properties>
1212
<maven.compiler.source>17</maven.compiler.source>
@@ -19,13 +19,13 @@
1919
<dependency>
2020
<groupId>dev.langchain4j</groupId>
2121
<artifactId>langchain4j-bedrock</artifactId>
22-
<version>1.0.1-beta6</version>
22+
<version>1.1.0-rc1</version>
2323
</dependency>
2424

2525
<dependency>
2626
<groupId>dev.langchain4j</groupId>
2727
<artifactId>langchain4j</artifactId>
28-
<version>1.0.1</version>
28+
<version>1.1.0</version>
2929
</dependency>
3030

3131
<dependency>

bedrock-examples/src/main/java/converse/BedrockChatModelExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static void main(String[] args) {
112112

113113
ChatRequestParameters defaultParameters = BedrockChatRequestParameters.builder()
114114
// enabling reasoning with a budget of 1024 tokens
115-
.enableReasoning(1024L)
115+
.enableReasoning(1024)
116116
.build();
117117

118118
ChatModel chatModel = BedrockChatModel.builder()

bedrock-examples/src/main/java/converse/BedrockStreamingChatModelExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public static void main(String[] args) {
2020
StreamingChatModel model = BedrockStreamingChatModel.builder()
2121
.modelId("anthropic.claude-3-5-sonnet-20240620-v1:0")
2222
.region(Region.US_EAST_1)
23-
.maxRetries(2)
2423
.timeout(Duration.ofMinutes(1))
2524
// Other parameters can be set as well
2625
.build();

bedrock-examples/src/main/java/invoke/BedrockChatModelExample.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

bedrock-examples/src/main/java/invoke/BedrockStreamingChatModelExample.java

Lines changed: 0 additions & 50 deletions
This file was deleted.

chroma-example/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>dev.langchain4j</groupId>
88
<artifactId>chroma-example</artifactId>
9-
<version>1.0.1-beta6</version>
9+
<version>1.1.0-beta7</version>
1010

1111
<properties>
1212
<maven.compiler.source>17</maven.compiler.source>
@@ -19,13 +19,13 @@
1919
<dependency>
2020
<groupId>dev.langchain4j</groupId>
2121
<artifactId>langchain4j-chroma</artifactId>
22-
<version>1.0.1-beta6</version>
22+
<version>1.1.0-beta7</version>
2323
</dependency>
2424

2525
<dependency>
2626
<groupId>dev.langchain4j</groupId>
2727
<artifactId>langchain4j-embeddings-all-minilm-l6-v2</artifactId>
28-
<version>1.0.1-beta6</version>
28+
<version>1.1.0-beta7</version>
2929
</dependency>
3030

3131
<dependency>

0 commit comments

Comments
 (0)