From 2438a2a8b35a3b9892ae8257516bbc5c2afd273f Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 20 Sep 2024 03:32:54 +0000 Subject: [PATCH] chore(deps) : update to latest SB and supported model --- embeddingstores/neo4j-springai/pom.xml | 2 +- .../neo4j-springai/src/main/resources/application.properties | 3 ++- embeddingstores/opensearch-langchain4j/pom.xml | 2 +- embeddingstores/pgvector-langchain4j/pom.xml | 2 +- embeddingstores/pgvector-springai/pom.xml | 2 +- .../src/main/resources/application.properties | 3 ++- java-openai/src/main/java/com/example/learning/Main.java | 2 +- rag/rag-langchain4j-AllMiniLmL6V2-llm/pom.xml | 2 +- .../src/main/resources/application.properties | 2 +- rag/rag-springai-ollama-llm/pom.xml | 2 +- 10 files changed, 12 insertions(+), 10 deletions(-) diff --git a/embeddingstores/neo4j-springai/pom.xml b/embeddingstores/neo4j-springai/pom.xml index fc99ba9..badd291 100644 --- a/embeddingstores/neo4j-springai/pom.xml +++ b/embeddingstores/neo4j-springai/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.3 + 3.3.4 diff --git a/embeddingstores/neo4j-springai/src/main/resources/application.properties b/embeddingstores/neo4j-springai/src/main/resources/application.properties index 9b8f646..f101a2d 100644 --- a/embeddingstores/neo4j-springai/src/main/resources/application.properties +++ b/embeddingstores/neo4j-springai/src/main/resources/application.properties @@ -4,8 +4,9 @@ spring.ai.openai.api-key=demo 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-3.5-turbo +spring.ai.openai.chat.options.model=gpt-4o-mini spring.ai.openai.chat.options.responseFormat=json_object +spring.ai.openai.embedding.options.model=text-embedding-3-small spring.threads.virtual.enabled=true diff --git a/embeddingstores/opensearch-langchain4j/pom.xml b/embeddingstores/opensearch-langchain4j/pom.xml index 3b5e4d7..93099ec 100644 --- a/embeddingstores/opensearch-langchain4j/pom.xml +++ b/embeddingstores/opensearch-langchain4j/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.3 + 3.3.4 diff --git a/embeddingstores/pgvector-langchain4j/pom.xml b/embeddingstores/pgvector-langchain4j/pom.xml index 069e809..a517214 100644 --- a/embeddingstores/pgvector-langchain4j/pom.xml +++ b/embeddingstores/pgvector-langchain4j/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.3 + 3.3.4 org.example.ai diff --git a/embeddingstores/pgvector-springai/pom.xml b/embeddingstores/pgvector-springai/pom.xml index 99e34f5..d5c842b 100644 --- a/embeddingstores/pgvector-springai/pom.xml +++ b/embeddingstores/pgvector-springai/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.3 + 3.3.4 diff --git a/embeddingstores/pgvector-springai/src/main/resources/application.properties b/embeddingstores/pgvector-springai/src/main/resources/application.properties index 5aca066..54b18ca 100644 --- a/embeddingstores/pgvector-springai/src/main/resources/application.properties +++ b/embeddingstores/pgvector-springai/src/main/resources/application.properties @@ -4,8 +4,9 @@ spring.ai.openai.api-key=demo spring.ai.openai.base-url=http://langchain4j.dev/demo/openai spring.ai.openai.image.enabled=false spring.ai.openai.chat.options.temperature=0.7 -spring.ai.openai.chat.options.model=gpt-3.5-turbo +spring.ai.openai.chat.options.model=gpt-4o-mini spring.ai.openai.chat.options.responseFormat=json_object +spring.ai.openai.embedding.options.model=text-embedding-3-small spring.threads.virtual.enabled=true diff --git a/java-openai/src/main/java/com/example/learning/Main.java b/java-openai/src/main/java/com/example/learning/Main.java index 50ab1b2..8a5a2f2 100644 --- a/java-openai/src/main/java/com/example/learning/Main.java +++ b/java-openai/src/main/java/com/example/learning/Main.java @@ -19,7 +19,7 @@ public class Main { // "https://api.openai.com/v1/chat/completions"; public static final String OPENAI_API_KEY = "demo"; public static final String CHAT_URL = "http://langchain4j.dev/demo/openai/v1/chat/completions"; - public final static String MODEL = "gpt-3.5-turbo"; + public final static String MODEL = "gpt-4o-mini"; public final static double TEMPERATURE = 0.7; static HttpClient client = HttpClient.newHttpClient(); diff --git a/rag/rag-langchain4j-AllMiniLmL6V2-llm/pom.xml b/rag/rag-langchain4j-AllMiniLmL6V2-llm/pom.xml index 9e550ef..22d7562 100644 --- a/rag/rag-langchain4j-AllMiniLmL6V2-llm/pom.xml +++ b/rag/rag-langchain4j-AllMiniLmL6V2-llm/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.3 + 3.3.4 org.example.ai diff --git a/rag/rag-langchain4j-AllMiniLmL6V2-llm/src/main/resources/application.properties b/rag/rag-langchain4j-AllMiniLmL6V2-llm/src/main/resources/application.properties index 5b5987e..fa32530 100644 --- a/rag/rag-langchain4j-AllMiniLmL6V2-llm/src/main/resources/application.properties +++ b/rag/rag-langchain4j-AllMiniLmL6V2-llm/src/main/resources/application.properties @@ -1,7 +1,7 @@ spring.application.name=rag-langchain4j-AllMiniLmL6V2-llm langchain4j.open-ai.chat-model.api-key=demo -langchain4j.open-ai.chat-model.model-name=gpt-3.5-turbo +langchain4j.open-ai.chat-model.model-name=gpt-4o-mini langchain4j.open-ai.chat-model.temperature=0.7 langchain4j.open-ai.chat-model.timeout=PT60S langchain4j.open-ai.chat-model.log-requests=true diff --git a/rag/rag-springai-ollama-llm/pom.xml b/rag/rag-springai-ollama-llm/pom.xml index 637c174..b3545ce 100644 --- a/rag/rag-springai-ollama-llm/pom.xml +++ b/rag/rag-springai-ollama-llm/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.3 + 3.3.4 com.learning.ai