captain-awesome
commited on
Commit
•
1f78d9c
1
Parent(s):
877547f
Update app.py
Browse files
app.py
CHANGED
@@ -380,7 +380,7 @@ def main():
|
|
380 |
# Create and persist a Chroma vector database from the chunked documents
|
381 |
db = FAISS.from_documents(chunked_documents, embeddings)
|
382 |
# db = Chroma.from_documents(documents=chunked_documents,embedding=embeddings,persist_directory=persist_directory)
|
383 |
-
db.persist()
|
384 |
|
385 |
retriever = db.as_retriever(search_kwargs={"k":1})
|
386 |
|
|
|
380 |
# Create and persist a Chroma vector database from the chunked documents
|
381 |
db = FAISS.from_documents(chunked_documents, embeddings)
|
382 |
# db = Chroma.from_documents(documents=chunked_documents,embedding=embeddings,persist_directory=persist_directory)
|
383 |
+
# db.persist()
|
384 |
|
385 |
retriever = db.as_retriever(search_kwargs={"k":1})
|
386 |
|