From ec69d00fee7ee4156ad25c5589d626273bf1c843 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Thu, 28 Mar 2024 09:46:31 +0000 Subject: [PATCH] using mistral chat model --- .../src/main/resources/application.properties | 4 ++-- .../llmragwithspringai/TestLlmRagWithSpringAiApplication.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rag-springai-ollama-llm/src/main/resources/application.properties b/rag-springai-ollama-llm/src/main/resources/application.properties index ab8f62d..b2ab2d1 100644 --- a/rag-springai-ollama-llm/src/main/resources/application.properties +++ b/rag-springai-ollama-llm/src/main/resources/application.properties @@ -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 diff --git a/rag-springai-ollama-llm/src/test/java/com/learning/ai/llmragwithspringai/TestLlmRagWithSpringAiApplication.java b/rag-springai-ollama-llm/src/test/java/com/learning/ai/llmragwithspringai/TestLlmRagWithSpringAiApplication.java index 5f45f51..a8a5569 100644 --- a/rag-springai-ollama-llm/src/test/java/com/learning/ai/llmragwithspringai/TestLlmRagWithSpringAiApplication.java +++ b/rag-springai-ollama-llm/src/test/java/com/learning/ai/llmragwithspringai/TestLlmRagWithSpringAiApplication.java @@ -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;