From a2c894bfde2e91e3a8c4bdea625ffebea098c362 Mon Sep 17 00:00:00 2001 From: Davide Soltys <91910438+ItsAtlant@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:10:19 +0100 Subject: [PATCH] Changing db directory name.py In the "indexer.py" file, the `persist_directory` is set to "./db-hormozi," while in "ollama_gemma2_rag_debugging.py," it is set to "./db." --- 2024/gemma2_local_rag/ollama_gemma2_rag_debugging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2024/gemma2_local_rag/ollama_gemma2_rag_debugging.py b/2024/gemma2_local_rag/ollama_gemma2_rag_debugging.py index 8b615ea..8269564 100644 --- a/2024/gemma2_local_rag/ollama_gemma2_rag_debugging.py +++ b/2024/gemma2_local_rag/ollama_gemma2_rag_debugging.py @@ -12,7 +12,7 @@ # # Create embeddingsclear embeddings = OllamaEmbeddings(model="nomic-embed-text", show_progress=True) -db = Chroma(persist_directory="./db", +db = Chroma(persist_directory="./db-hormozi", embedding_function=embeddings) # # Create retriever @@ -81,4 +81,4 @@ def ask_question(question): -# # pip install langchain-chroma \ No newline at end of file +# # pip install langchain-chroma