Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,9 @@ embeddings = HuggingFaceEmbeddings()
|
|
21 |
persist_directory = "vector_db"
|
22 |
vectordb = Chroma.from_documents(documents=documents, embedding=embeddings, persist_directory=persist_directory)
|
23 |
vectordb = Chroma(persist_directory=persist_directory, embedding_function=embeddings)
|
|
|
|
|
|
|
24 |
|
25 |
llm = HuggingFacePipeline.from_model_id(
|
26 |
model_id="bigscience/bloomz-1b7",
|
|
|
21 |
persist_directory = "vector_db"
|
22 |
vectordb = Chroma.from_documents(documents=documents, embedding=embeddings, persist_directory=persist_directory)
|
23 |
vectordb = Chroma(persist_directory=persist_directory, embedding_function=embeddings)
|
24 |
+
vectordb.persist()
|
25 |
+
vectordb = None
|
26 |
+
vectordb = Chroma(persist_directory=persist_directory, embedding_function=embeddings)
|
27 |
|
28 |
llm = HuggingFacePipeline.from_model_id(
|
29 |
model_id="bigscience/bloomz-1b7",
|