Skip to content

Commit

Permalink
chore(deps) : update to latest SB and supported model
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Sep 20, 2024
1 parent 9623c0a commit 2438a2a
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion embeddingstores/neo4j-springai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion embeddingstores/opensearch-langchain4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down
2 changes: 1 addition & 1 deletion embeddingstores/pgvector-langchain4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>org.example.ai</groupId>
Expand Down
2 changes: 1 addition & 1 deletion embeddingstores/pgvector-springai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion java-openai/src/main/java/com/example/learning/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion rag/rag-langchain4j-AllMiniLmL6V2-llm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>org.example.ai</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion rag/rag-springai-ollama-llm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.learning.ai</groupId>
Expand Down

0 comments on commit 2438a2a

Please sign in to comment.