reab5555 commited on
Commit
049120c
·
verified ·
1 Parent(s): 3986837

Update processing.py

Browse files
Files changed (1) hide show
  1. processing.py +2 -2
processing.py CHANGED
@@ -30,8 +30,8 @@ for key, file_path in knowledge_files.items():
30
  text_faiss_index = FAISS.from_texts(documents, embedding_model)
31
 
32
  # Load pre-existing FAISS indexes
33
- attachments_faiss_index = FAISS.load_local("knowledge/faiss_index_Attachments_db", embedding_model)
34
- personalities_faiss_index = FAISS.load_local("knowledge/faiss_index_Personalities_db", embedding_model)
35
 
36
  # Initialize LLM
37
  llm = load_model(openai_api_key)
 
30
  text_faiss_index = FAISS.from_texts(documents, embedding_model)
31
 
32
  # Load pre-existing FAISS indexes
33
+ attachments_faiss_index = FAISS.load_local("knowledge/faiss_index_Attachments_db", embedding_model, allow_dangerous_deserialization=True)
34
+ personalities_faiss_index = FAISS.load_local("knowledge/faiss_index_Personalities_db", embedding_model, allow_dangerous_deserialization=True)
35
 
36
  # Initialize LLM
37
  llm = load_model(openai_api_key)