Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -300,6 +300,8 @@ vector_store_HF = Chroma(
|
|
300 |
embedding_function=embeddings_HuggingFace)
|
301 |
print("vector_store_HF:",vector_store_HF._collection.count(),"chunks.")
|
302 |
|
|
|
|
|
303 |
|
304 |
# Now we create the code to retrieve embeddings from the vectorstore (again, sticking with HF)
|
305 |
|
|
|
300 |
embedding_function=embeddings_HuggingFace)
|
301 |
print("vector_store_HF:",vector_store_HF._collection.count(),"chunks.")
|
302 |
|
303 |
+
with open("embeddings.pkl", "wb") as f:
|
304 |
+
pickle.dump(vector_store_HF, f)
|
305 |
|
306 |
# Now we create the code to retrieve embeddings from the vectorstore (again, sticking with HF)
|
307 |
|