Skip to content

Commit

Permalink
using mistral chat model
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Mar 28, 2024
1 parent 6df48cf commit ec69d00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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=orca-mini
spring.ai.ollama.chat.options.model=mistral
spring.ai.ollama.chat.options.responseFormat=json_object

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

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,7 +16,7 @@ public class TestLlmRagWithSpringAiApplication {

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

0 comments on commit ec69d00

Please sign in to comment.