Update app.py
Browse files
app.py
CHANGED
@@ -42,10 +42,8 @@ def create_retriever_from_chroma(vectorstore_path="./docs/chroma/", search_type=
|
|
42 |
)
|
43 |
|
44 |
|
45 |
-
|
46 |
if os.path.exists(vectorstore_path) and os.listdir(vectorstore_path):
|
47 |
-
# Load the existing vectorstore
|
48 |
-
st.write("Vector store exists and is loaded")
|
49 |
vectorstore = Chroma(persist_directory=vectorstore_path,embedding_function=embeddings)
|
50 |
|
51 |
else:
|
|
|
42 |
)
|
43 |
|
44 |
|
45 |
+
|
46 |
if os.path.exists(vectorstore_path) and os.listdir(vectorstore_path):
|
|
|
|
|
47 |
vectorstore = Chroma(persist_directory=vectorstore_path,embedding_function=embeddings)
|
48 |
|
49 |
else:
|