From e8607e94590d93ab4e22ad2d32434be4aeac2c2c Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Thu, 23 May 2024 12:11:41 +0200 Subject: [PATCH 1/3] update version to 0.31.0 --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- langchain4j-anthropic-spring-boot-starter/pom.xml | 2 +- langchain4j-azure-ai-search-spring-boot-starter/pom.xml | 2 +- langchain4j-azure-open-ai-spring-boot-starter/pom.xml | 2 +- langchain4j-easy-rag-spring-boot-starter/pom.xml | 2 +- langchain4j-ollama-spring-boot-starter/pom.xml | 2 +- langchain4j-open-ai-spring-boot-starter/pom.xml | 2 +- langchain4j-spring-boot-starter/pom.xml | 2 +- pom.xml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index c256586..7a60052 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -23,7 +23,7 @@ Please provide a relevant code snippets to reproduce this bug. A clear and concise description of what you expected to happen. **Please complete the following information:** -- LangChain4j version: e.g. 0.30.0 +- LangChain4j version: e.g. 0.31.0 - Java version: e.g. 11 - Spring Boot version: e.g. 2.7.18 diff --git a/langchain4j-anthropic-spring-boot-starter/pom.xml b/langchain4j-anthropic-spring-boot-starter/pom.xml index ae28cfd..d6b6eed 100644 --- a/langchain4j-anthropic-spring-boot-starter/pom.xml +++ b/langchain4j-anthropic-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.31.0-SNAPSHOT + 0.31.0 ../pom.xml diff --git a/langchain4j-azure-ai-search-spring-boot-starter/pom.xml b/langchain4j-azure-ai-search-spring-boot-starter/pom.xml index 4349a86..c5b0281 100644 --- a/langchain4j-azure-ai-search-spring-boot-starter/pom.xml +++ b/langchain4j-azure-ai-search-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.31.0-SNAPSHOT + 0.31.0 ../pom.xml diff --git a/langchain4j-azure-open-ai-spring-boot-starter/pom.xml b/langchain4j-azure-open-ai-spring-boot-starter/pom.xml index 72bb78e..bfba111 100644 --- a/langchain4j-azure-open-ai-spring-boot-starter/pom.xml +++ b/langchain4j-azure-open-ai-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.31.0-SNAPSHOT + 0.31.0 ../pom.xml diff --git a/langchain4j-easy-rag-spring-boot-starter/pom.xml b/langchain4j-easy-rag-spring-boot-starter/pom.xml index 14ceee8..fe0bcac 100644 --- a/langchain4j-easy-rag-spring-boot-starter/pom.xml +++ b/langchain4j-easy-rag-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.30.0 + 0.31.0 ../pom.xml diff --git a/langchain4j-ollama-spring-boot-starter/pom.xml b/langchain4j-ollama-spring-boot-starter/pom.xml index e1f5890..1c2bdda 100644 --- a/langchain4j-ollama-spring-boot-starter/pom.xml +++ b/langchain4j-ollama-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.31.0-SNAPSHOT + 0.31.0 ../pom.xml diff --git a/langchain4j-open-ai-spring-boot-starter/pom.xml b/langchain4j-open-ai-spring-boot-starter/pom.xml index c911c13..cbaa38e 100644 --- a/langchain4j-open-ai-spring-boot-starter/pom.xml +++ b/langchain4j-open-ai-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.31.0-SNAPSHOT + 0.31.0 ../pom.xml diff --git a/langchain4j-spring-boot-starter/pom.xml b/langchain4j-spring-boot-starter/pom.xml index 62762fe..170c95f 100644 --- a/langchain4j-spring-boot-starter/pom.xml +++ b/langchain4j-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ dev.langchain4j langchain4j-spring - 0.31.0-SNAPSHOT + 0.31.0 ../pom.xml diff --git a/pom.xml b/pom.xml index 6814f31..fbd0392 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.langchain4j langchain4j-spring - 0.31.0-SNAPSHOT + 0.31.0 pom langchain4j-spring parent POM From 0dcd2561c92b4920ee91a8cbba2c9d5acd2ed08a Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Thu, 23 May 2024 14:19:24 +0200 Subject: [PATCH 2/3] AzureAiSearchEmbeddingStore - add "indexName" to the builder (#1084) --- .../langchain4j/azure/aisearch/spring/AutoConfigIT.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/langchain4j-azure-ai-search-spring-boot-starter/src/test/java/dev/langchain4j/azure/aisearch/spring/AutoConfigIT.java b/langchain4j-azure-ai-search-spring-boot-starter/src/test/java/dev/langchain4j/azure/aisearch/spring/AutoConfigIT.java index 19cf514..9dc0988 100644 --- a/langchain4j-azure-ai-search-spring-boot-starter/src/test/java/dev/langchain4j/azure/aisearch/spring/AutoConfigIT.java +++ b/langchain4j-azure-ai-search-spring-boot-starter/src/test/java/dev/langchain4j/azure/aisearch/spring/AutoConfigIT.java @@ -24,7 +24,7 @@ import java.util.List; -import static dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore.INDEX_NAME; +import static dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore.DEFAULT_INDEX_NAME; import static java.util.Arrays.asList; import static org.assertj.core.api.Assertions.assertThat; @@ -42,7 +42,7 @@ class AutoConfigIT { .endpoint(System.getenv("AZURE_SEARCH_ENDPOINT")) .credential(new AzureKeyCredential(System.getenv("AZURE_SEARCH_KEY"))) .buildClient(); - private final SearchIndex index = new SearchIndex(INDEX_NAME); + private final SearchIndex index = new SearchIndex(DEFAULT_INDEX_NAME); private final ApplicationContextRunner contextRunner = new ApplicationContextRunner() .withConfiguration(AutoConfigurations.of(AutoConfig.class)); @@ -50,7 +50,7 @@ class AutoConfigIT { @Test void should_provide_ai_search_retriever() { - searchIndexClient.deleteIndex(INDEX_NAME); + searchIndexClient.deleteIndex(DEFAULT_INDEX_NAME); contextRunner .withPropertyValues( @@ -167,7 +167,7 @@ void should_provide_ai_search_retriever() { @Test void should_provide_ai_search_embedding_store() { - searchIndexClient.deleteIndex(INDEX_NAME); + searchIndexClient.deleteIndex(DEFAULT_INDEX_NAME); contextRunner .withPropertyValues( From 58170e5d755dfa89f242282e7108bd9ae1b1d143 Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Thu, 23 May 2024 17:11:53 +0200 Subject: [PATCH 3/3] skip tests --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e99efc9..f1999f5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,7 +25,7 @@ jobs: gpg-passphrase: GPG_PASSPHRASE - name: release - run: mvn -B -U --fail-at-end -Psign clean deploy + run: mvn -B -U --fail-at-end -DskipTests -DskipITs -Psign clean deploy env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}