Prajwal3009 commited on
Commit
3d4cf2d
·
verified ·
1 Parent(s): c7ab1ea

Update documentchat.py

Browse files
Files changed (1) hide show
  1. documentchat.py +1 -1
documentchat.py CHANGED
@@ -29,7 +29,7 @@ def get_text_chunks(text):
29
 
30
  def get_vector_store(text_chunks):
31
  embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
32
- vector_store = FAISS.from_texts(text_chunks, embedding=embeddings)
33
  vector_store.save_local("faiss_index")
34
 
35
  def get_conversational_chain():
 
29
 
30
  def get_vector_store(text_chunks):
31
  embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
32
+ vector_store = FAISS.from_texts(text_chunks, embedding=embeddings,allow_dangerous_deserialization=True)
33
  vector_store.save_local("faiss_index")
34
 
35
  def get_conversational_chain():