Spaces:
Running
Running
Update app.py
Browse files
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="./
|
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(
|