Skip to content

Commit

Permalink
Merge branch 'main' into renovate/spring-boot
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Sep 20, 2024
2 parents 0d23fed + 68dce13 commit e997d5b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ spring.mvc.problemdetails.enabled=true
spring.ai.ollama.chat.options.model=llama3
spring.ai.ollama.embedding.options.model=llama3

spring.testcontainers.beans.startup=parallel
spring.testcontainers.beans.startup=parallel
4 changes: 2 additions & 2 deletions embeddingstores/pgvector-springai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>21</java.version>
<spring-ai.version>1.0.0-M1</spring-ai.version>
<spring-ai.version>1.0.0-M2</spring-ai.version>

<spotless.version>2.43.0</spotless.version>
</properties>
Expand Down Expand Up @@ -99,7 +99,7 @@
<configuration>
<java>
<palantirJavaFormat>
<version>2.47.0</version>
<version>2.50.0</version>
</palantirJavaFormat>
<importOrder />
<removeUnusedImports />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class PgVectorEmbeddingStoreExample {
public class PgVectorOpenAIEmbeddingStoreExample {

public static void main(String[] args) {
SpringApplication.run(PgVectorEmbeddingStoreExample.class, args);
SpringApplication.run(PgVectorOpenAIEmbeddingStoreExample.class, args);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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-4o-mini
spring.ai.openai.chat.options.responseFormat=json_object
spring.ai.openai.chat.options.responseFormat.type=json_schema
spring.ai.openai.embedding.options.model=text-embedding-3-small

spring.threads.virtual.enabled=true
Expand All @@ -14,4 +14,5 @@ spring.threads.virtual.enabled=true
#PgVector
spring.ai.vectorstore.pgvector.dimensions=1536
## only for development
spring.ai.vectorstore.pgvector.removeExistingVectorStoreTable=true
spring.ai.vectorstore.pgvector.removeExistingVectorStoreTable=true
spring.ai.vectorstore.pgvector.initialize-schema=true
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

@TestConfiguration(proxyBeanMethods = false)
@ImportTestcontainers(ContainersConfig.class)
public class TestPgVectorEmbeddingStoreExample {
public class TestPgVectorOpenAIEmbeddingStoreExample {

public static void main(String[] args) {
SpringApplication.from(PgVectorEmbeddingStoreExample::main)
.with(TestPgVectorEmbeddingStoreExample.class)
SpringApplication.from(PgVectorOpenAIEmbeddingStoreExample::main)
.with(TestPgVectorOpenAIEmbeddingStoreExample.class)
.run(args);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.equalTo;

import com.learning.ai.TestPgVectorEmbeddingStoreExample;
import com.learning.ai.TestPgVectorOpenAIEmbeddingStoreExample;
import io.restassured.RestAssured;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand All @@ -13,7 +13,7 @@

@SpringBootTest(
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
classes = TestPgVectorEmbeddingStoreExample.class)
classes = TestPgVectorOpenAIEmbeddingStoreExample.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class QueryControllerTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spring.ai.ollama.embedding.options.model=nomic-embed-text

spring.ai.vectorstore.redis.index=vector_store
spring.ai.vectorstore.redis.prefix=ai
spring.ai.vectorstore.redis.initializeSchema=true
spring.ai.vectorstore.redis.initialize-schema=true

spring.ai.ollama.baseUrl=http://localhost:11434

Expand Down
2 changes: 1 addition & 1 deletion rag/rag-springai-openai-llm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<configuration>
<java>
<palantirJavaFormat>
<version>2.47.0</version>
<version>2.50.0</version>
</palantirJavaFormat>
<importOrder/>
<removeUnusedImports/>
Expand Down

0 comments on commit e997d5b

Please sign in to comment.