wt002 commited on
Commit
92149c4
·
verified ·
1 Parent(s): 79e8949

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -353,7 +353,7 @@ docs = [
353
  Document(page_content="She continued releasing music well into the 2000s.")
354
  ]
355
  # Get the embeddings for the documents
356
- embeddings = embedding_model.embed([doc.page_content for doc in docs])
357
 
358
  # Now, you can use the embeddings with FAISS or other retrieval systems
359
  # For example, with FAISS:
 
353
  Document(page_content="She continued releasing music well into the 2000s.")
354
  ]
355
  # Get the embeddings for the documents
356
+ vector_store = FAISS.from_documents(docs, embedding_model)
357
 
358
  # Now, you can use the embeddings with FAISS or other retrieval systems
359
  # For example, with FAISS: