File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT=text-embedding-ada-002
1717COHERE_API_KEY = <COHERE_API_KEY>
1818
1919# settings for local models
20- LOCAL_MODEL = llama3.1 :8b
20+ LOCAL_MODEL = deepseek-r1 :8b
2121LOCAL_MODEL_EMBEDDINGS = nomic-embed-text
2222
2323# settings for GraphRAG
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ RUN --mount=type=ssh \
9797 --mount=type=cache,target=/root/.cache/pip \
9898 curl -fsSL https://ollama.com/install.sh | sh
9999
100- RUN nohup bash -c "ollama serve &" && sleep 4 && ollama pull llama3.1 :8b
100+ RUN nohup bash -c "ollama serve &" && sleep 4 && ollama pull deepseek-r1 :8b
101101RUN nohup bash -c "ollama serve &" && sleep 4 && ollama pull nomic-embed-text
102102
103103# Clean up
Original file line number Diff line number Diff line change 176176 "spec" : {
177177 "__type__" : "kotaemon.llms.ChatOpenAI" ,
178178 "base_url" : KH_OLLAMA_URL ,
179- "model" : config ("LOCAL_MODEL" , default = "llama3.1 :8b" ),
179+ "model" : config ("LOCAL_MODEL" , default = "deepseek-r1 :8b" ),
180180 "api_key" : "ollama" ,
181181 },
182182 "default" : False ,
Original file line number Diff line number Diff line change 22
33import gradio as gr
44import requests
5+ from decouple import config
56from ktem .app import BasePage
67from ktem .embeddings .manager import embedding_models_manager as embeddings
78from ktem .llms .manager import llms
@@ -268,7 +269,7 @@ def update_model(
268269 spec = {
269270 "__type__" : "kotaemon.llms.ChatOpenAI" ,
270271 "base_url" : KH_OLLAMA_URL ,
271- "model" : "llama3.1 :8b" ,
272+ "model" : config ( "LOCAL_MODEL" , default = "deepseek-r1 :8b") ,
272273 "api_key" : "ollama" ,
273274 },
274275 default = True ,
@@ -278,7 +279,9 @@ def update_model(
278279 spec = {
279280 "__type__" : "kotaemon.embeddings.OpenAIEmbeddings" ,
280281 "base_url" : KH_OLLAMA_URL ,
281- "model" : "nomic-embed-text" ,
282+ "model" : config (
283+ "LOCAL_MODEL_EMBEDDINGS" , default = "nomic-embed-text"
284+ ),
282285 "api_key" : "ollama" ,
283286 },
284287 default = True ,
You can’t perform that action at this time.
0 commit comments