wt002 commited on
Commit
eb1832e
·
verified ·
1 Parent(s): 257f406

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -3
agent.py CHANGED
@@ -192,13 +192,12 @@ for task in tasks:
192
  embedding_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-mpnet-base-v2")
193
 
194
  # Create FAISS VectorStore from documents
195
- vector_store = FAISS.from_documents(docs, embedding_model)
 
196
 
197
  # Save the FAISS index locally
198
  vector_store.save_local("faiss_index")
199
 
200
- #print("✅ FAISS index created and saved locally.")
201
-
202
 
203
 
204
  # -------------------------------
 
192
  embedding_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-mpnet-base-v2")
193
 
194
  # Create FAISS VectorStore from documents
195
+ #vector_store = FAISS.from_documents(docs, embedding_model)
196
+ vector_store = FAISS.load_local("faiss_index", embedding_model)
197
 
198
  # Save the FAISS index locally
199
  vector_store.save_local("faiss_index")
200
 
 
 
201
 
202
 
203
  # -------------------------------