Skip to content

Commit

Permalink
Merge branch 'main' into renovate/spring-ai.version
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Sep 20, 2024
2 parents 90262e4 + 2438a2a commit ccb155a
Show file tree
Hide file tree
Showing 22 changed files with 31 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chatbot-ollama-springai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4.2.2
uses: actions/setup-java@v4.3.0
with:
java-version: ${{ matrix.java }}
distribution: temurin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chatmodel-springai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4.2.2
uses: actions/setup-java@v4.3.0
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/embeddingstore-neo4j-springai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4.2.2
uses: actions/setup-java@v4.3.0
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pgvector-langchain4j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4.2.2
uses: actions/setup-java@v4.3.0
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pgvector-springai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4.2.2
uses: actions/setup-java@v4.3.0
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rag-langchain4j-AllMiniLmL6V2-llm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4.2.2
uses: actions/setup-java@v4.3.0
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rag-springai-ollama-llm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4.2.2
uses: actions/setup-java@v4.3.0
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rag-springai-openai-llm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4.2.2
uses: actions/setup-java@v4.3.0
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
Expand Down
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.responseFormat.type=json_object
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:

opensearch:
image: opensearchproject/opensearch:2.16.0
image: opensearchproject/opensearch:2.17.0
container_name: opensearch
hostname: opensearch
ports:
Expand All @@ -14,7 +14,7 @@ services:
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"

opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.16.0
image: opensearchproject/opensearch-dashboards:2.17.0
container_name: opensearch_dashboards
ports:
- "5601:5601"
Expand Down
4 changes: 2 additions & 2 deletions 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 All @@ -20,7 +20,7 @@
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<langchain4j.version>0.33.0</langchain4j.version>
<langchain4j.version>0.34.0</langchain4j.version>
<tinylog.version>2.7.0</tinylog.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions 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 All @@ -16,7 +16,7 @@
<properties>
<java.version>21</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<langchain4j.version>0.33.0</langchain4j.version>
<langchain4j.version>0.34.0</langchain4j.version>
</properties>

<dependencies>
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.responseFormat.type=json_object
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 playground-langchain4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<langchain4j.version>0.33.0</langchain4j.version>
<langchain4j.version>0.34.0</langchain4j.version>
<tinylog.version>2.7.0</tinylog.version>
</properties>

Expand Down
6 changes: 3 additions & 3 deletions 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 All @@ -16,8 +16,8 @@

<properties>
<java.version>21</java.version>
<langchain4j.version>0.33.0</langchain4j.version>
<langchain4j.springboot.version>0.33.0</langchain4j.springboot.version>
<langchain4j.version>0.34.0</langchain4j.version>
<langchain4j.springboot.version>0.34.0</langchain4j.springboot.version>
<spotless.version>2.43.0</spotless.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
class AIConfig {

@Bean
AICustomerSupportAgent customerSupportAgent(
AICustomerSupportAgent aiCustomerSupportAgent(
ChatLanguageModel chatLanguageModel,
ChatTools chatAssistantTools,
ContentRetriever contentRetriever,
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/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
ports:
- '6379:6379'
lgtm-stack:
image: grafana/otel-lgtm:0.7.1
image: grafana/otel-lgtm:0.7.4
extra_hosts: ['host.docker.internal:host-gateway']
container_name: lgtm-stack
environment:
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 ccb155a

Please sign in to comment.