From 4794774458f10874728d2a32148c8c2fd5281fc9 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 20 Sep 2024 04:20:05 +0000 Subject: [PATCH] chore(deps) : upgrade to spring openai 1.0.0-M2 --- chatbot/chatbot-ollama-springai/pom.xml | 2 +- embeddingstores/neo4j-springai/pom.xml | 2 +- .../src/main/resources/application.properties | 6 +++++- .../learning/ai/TestNeo4jVectorEmbeddingStoreExample.java | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/chatbot/chatbot-ollama-springai/pom.xml b/chatbot/chatbot-ollama-springai/pom.xml index 390f33d..f6d30f0 100644 --- a/chatbot/chatbot-ollama-springai/pom.xml +++ b/chatbot/chatbot-ollama-springai/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.3 + 3.3.4 com.example.chatbot diff --git a/embeddingstores/neo4j-springai/pom.xml b/embeddingstores/neo4j-springai/pom.xml index badd291..2912a25 100644 --- a/embeddingstores/neo4j-springai/pom.xml +++ b/embeddingstores/neo4j-springai/pom.xml @@ -18,7 +18,7 @@ UTF-8 21 - 1.0.0-M1 + 1.0.0-M2 2.43.0 diff --git a/embeddingstores/neo4j-springai/src/main/resources/application.properties b/embeddingstores/neo4j-springai/src/main/resources/application.properties index f101a2d..a7af636 100644 --- a/embeddingstores/neo4j-springai/src/main/resources/application.properties +++ b/embeddingstores/neo4j-springai/src/main/resources/application.properties @@ -5,9 +5,13 @@ spring.ai.openai.base-url=http://langchain4j.dev/demo/openai spring.ai.openai.image.enabled=false spring.ai.openai.chat.options.temperature=0.2 spring.ai.openai.chat.options.model=gpt-4o-mini -spring.ai.openai.chat.options.responseFormat=json_object +##FIXME +#spring.ai.openai.chat.options.responseFormat=json_object spring.ai.openai.embedding.options.model=text-embedding-3-small +# only for demo purpose +spring.ai.vectorstore.neo4j.initialize-schema=true + spring.threads.virtual.enabled=true diff --git a/embeddingstores/neo4j-springai/src/test/java/com/learning/ai/TestNeo4jVectorEmbeddingStoreExample.java b/embeddingstores/neo4j-springai/src/test/java/com/learning/ai/TestNeo4jVectorEmbeddingStoreExample.java index 624651f..172ac60 100644 --- a/embeddingstores/neo4j-springai/src/test/java/com/learning/ai/TestNeo4jVectorEmbeddingStoreExample.java +++ b/embeddingstores/neo4j-springai/src/test/java/com/learning/ai/TestNeo4jVectorEmbeddingStoreExample.java @@ -13,7 +13,7 @@ public class TestNeo4jVectorEmbeddingStoreExample { @Bean @ServiceConnection Neo4jContainer neo4jContainer() { - return new Neo4jContainer<>(DockerImageName.parse("neo4j:5")).withLabsPlugins("apoc"); + return new Neo4jContainer<>(DockerImageName.parse("neo4j:5")).withPlugins("apoc"); } public static void main(String[] args) {