sahanes commited on
Commit
8810698
·
verified ·
1 Parent(s): eb87b2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,9 +21,9 @@ from langchain_community.vectorstores.faiss import FAISS
21
 
22
  # db = faiss.read_index('index.pkl')
23
  #db = pickle.load('index.pkl')
24
- with open('index.pickle', 'rb') as pkl:
25
- doc_embedding = pickle.load(pkl)
26
- db.save_local("faiss_index")
27
  db=FAISS.load_local("faiss_index", embeddings,allow_dangerous_deserialization=True)
28
  #-----------------------------------------------------------------------------
29
  def get_response_from_query(db, query, k=3):
 
21
 
22
  # db = faiss.read_index('index.pkl')
23
  #db = pickle.load('index.pkl')
24
+ # with open('index.pickle', 'rb') as pkl:
25
+ # doc_embedding = pickle.load(pkl)
26
+ # db.save_local("faiss_index")
27
  db=FAISS.load_local("faiss_index", embeddings,allow_dangerous_deserialization=True)
28
  #-----------------------------------------------------------------------------
29
  def get_response_from_query(db, query, k=3):