Spaces:
Runtime error
Runtime error
Update app.py
Browse filesprint the question for debug
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}")
|