Almaatla commited on
Commit
7b37006
1 Parent(s): 2146cee

Update app.py

Browse files

print the question for debug

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -460,6 +460,7 @@ def ask_df(df, api_key, model, ui_session_id):
460
  question = df.at[0, question_column].split("\n---\n")[0]
461
  db_folder = "/".join([session_folder, row["File name"]])
462
  db = FAISS.load_local(db_folder,embeddings)
 
463
  docs = db.similarity_search(question)
464
  references = '\n******************************\n'.join([d.page_content for d in docs])
465
  print(f"REFERENCES: {references}")
 
460
  question = df.at[0, question_column].split("\n---\n")[0]
461
  db_folder = "/".join([session_folder, row["File name"]])
462
  db = FAISS.load_local(db_folder,embeddings)
463
+ print(f"\n\nQUESTION:\n{question}\n\n")
464
  docs = db.similarity_search(question)
465
  references = '\n******************************\n'.join([d.page_content for d in docs])
466
  print(f"REFERENCES: {references}")