Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def create_retriever_from_chroma(data_path, vectorstore_path="docs/chroma/", sea
|
|
35 |
# Check if vectorstore exists
|
36 |
if os.path.exists(vectorstore_path) and os.listdir(vectorstore_path):
|
37 |
# Load the existing vectorstore
|
38 |
-
vectorstore = Chroma(persist_directory=vectorstore_path)
|
39 |
else:
|
40 |
# Load documents from the specified data path
|
41 |
documents = []
|
|
|
35 |
# Check if vectorstore exists
|
36 |
if os.path.exists(vectorstore_path) and os.listdir(vectorstore_path):
|
37 |
# Load the existing vectorstore
|
38 |
+
vectorstore = Chroma(persist_directory=vectorstore_path,embedding_function=embeddings)
|
39 |
else:
|
40 |
# Load documents from the specified data path
|
41 |
documents = []
|