ArturG9 commited on
Commit
02d892a
1 Parent(s): 0c35ed5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = []