ryanrwatkins commited on
Commit
d062367
·
verified ·
1 Parent(s): 2abeeae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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