kartheikiyer commited on
Commit
4f13ffe
·
1 Parent(s): a8ea5a3

troubleshooting df error

Browse files
.ipynb_checkpoints/app_gradio-checkpoint.py CHANGED
@@ -568,6 +568,7 @@ def deep_research(question, top_k, ec):
568
  full_answer = full_answer +' \n'+'### Summary:\n'+finalans
569
 
570
  full_df = pd.concat(atom_qn_dfs)
 
571
 
572
  rag_answer = {}
573
  rag_answer['answer'] = full_answer
@@ -602,6 +603,7 @@ def run_pathfinder(query, top_k, extra_keywords, toggles, prompt_type, rag_type,
602
  ec.rerank = True
603
 
604
  if prompt_type == "Deep Research (BETA)":
 
605
  formatted_df, rag_answer = deep_research(query, top_k = top_k, ec=ec)
606
  yield formatted_df, rag_answer['answer'], None, None, None
607
 
 
568
  full_answer = full_answer +' \n'+'### Summary:\n'+finalans
569
 
570
  full_df = pd.concat(atom_qn_dfs)
571
+ print(full_df.keys())
572
 
573
  rag_answer = {}
574
  rag_answer['answer'] = full_answer
 
603
  ec.rerank = True
604
 
605
  if prompt_type == "Deep Research (BETA)":
606
+ gr.Info("Starting deep research, please go grab some coffee - this takes a few mins.")
607
  formatted_df, rag_answer = deep_research(query, top_k = top_k, ec=ec)
608
  yield formatted_df, rag_answer['answer'], None, None, None
609
 
__pycache__/prompts.cpython-311.pyc ADDED
Binary file (18.7 kB). View file
 
app_gradio.py CHANGED
@@ -568,6 +568,7 @@ def deep_research(question, top_k, ec):
568
  full_answer = full_answer +' \n'+'### Summary:\n'+finalans
569
 
570
  full_df = pd.concat(atom_qn_dfs)
 
571
 
572
  rag_answer = {}
573
  rag_answer['answer'] = full_answer
@@ -602,6 +603,7 @@ def run_pathfinder(query, top_k, extra_keywords, toggles, prompt_type, rag_type,
602
  ec.rerank = True
603
 
604
  if prompt_type == "Deep Research (BETA)":
 
605
  formatted_df, rag_answer = deep_research(query, top_k = top_k, ec=ec)
606
  yield formatted_df, rag_answer['answer'], None, None, None
607
 
 
568
  full_answer = full_answer +' \n'+'### Summary:\n'+finalans
569
 
570
  full_df = pd.concat(atom_qn_dfs)
571
+ print(full_df.keys())
572
 
573
  rag_answer = {}
574
  rag_answer['answer'] = full_answer
 
603
  ec.rerank = True
604
 
605
  if prompt_type == "Deep Research (BETA)":
606
+ gr.Info("Starting deep research, please go grab some coffee - this takes a few mins.")
607
  formatted_df, rag_answer = deep_research(query, top_k = top_k, ec=ec)
608
  yield formatted_df, rag_answer['answer'], None, None, None
609