Skip to content

Commit

Permalink
feat : using orca-mini for demo purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Mar 28, 2024
1 parent 2524683 commit 3d148e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ spring.application.name=rag-springai-ollama-llm
spring.threads.virtual.enabled=true
spring.mvc.problemdetails.enabled=true

spring.ai.ollama.chat.options.model=llama2
spring.ai.ollama.chat.options.model=orca-mini
spring.ai.ollama.chat.options.responseFormat=json_object

spring.ai.ollama.embedding.options.model=llama2
spring.ai.ollama.embedding.options.model=orca-mini

spring.ai.vectorstore.redis.index=vector_store
spring.ai.vectorstore.redis.prefix=ai
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class TestLlmRagWithSpringAiApplication {

@Bean
OllamaContainer ollama(DynamicPropertyRegistry properties) {
OllamaContainer ollama = new OllamaContainer(
DockerImageName.parse("ghcr.io/thomasvitale/ollama-llama2").asCompatibleSubstituteFor("ollama/ollama"));
OllamaContainer ollama = new OllamaContainer(DockerImageName.parse("langchain4j/ollama-orca-mini:latest")
.asCompatibleSubstituteFor("ollama/ollama"));
properties.add("spring.ai.ollama.base-url", ollama::getEndpoint);
return ollama;
}
Expand Down

0 comments on commit 3d148e6

Please sign in to comment.