tdecae commited on
Commit
e7fac60
1 Parent(s): 2747388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ texts = [doc.page_content for doc in docs]
118
  embeddings = embedding_model.encode(texts).tolist() # Convert numpy arrays to lists
119
 
120
  # Create a Chroma vector store and add documents and their embeddings
121
- vectorstore = Chroma(persist_directory="./data")
122
  vectorstore.add_texts(texts)
123
  for i, embedding in enumerate(embeddings):
124
  vectorstore._collection.upsert(
 
118
  embeddings = embedding_model.encode(texts).tolist() # Convert numpy arrays to lists
119
 
120
  # Create a Chroma vector store and add documents and their embeddings
121
+ vectorstore = Chroma(persist_directory="./db")
122
  vectorstore.add_texts(texts)
123
  for i, embedding in enumerate(embeddings):
124
  vectorstore._collection.upsert(