Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def document_retrieval_chroma(llm, prompt):
|
|
103 |
#embeddings = HuggingFaceInstructEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2", model_kwargs={"device": "cpu"})
|
104 |
db = Chroma(embedding_function = embeddings,
|
105 |
#persist_directory = CHROMA_DIR)
|
106 |
-
persist_directory = path_work + '/chroma'
|
107 |
|
108 |
return db
|
109 |
|
|
|
103 |
#embeddings = HuggingFaceInstructEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2", model_kwargs={"device": "cpu"})
|
104 |
db = Chroma(embedding_function = embeddings,
|
105 |
#persist_directory = CHROMA_DIR)
|
106 |
+
persist_directory = path_work + '/chroma')
|
107 |
|
108 |
return db
|
109 |
|