Spaces:
Sleeping
Sleeping
Update documentchat.py
Browse files- 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():
|