zrguo commited on
Commit
ddcc625
·
2 Parent(s): 73d5f6e f03f19e

Merge pull request #177 from WinstonCHEN1/main

Browse files
Files changed (1) hide show
  1. reproduce/Step_3.py +2 -2
reproduce/Step_3.py CHANGED
@@ -18,8 +18,8 @@ def extract_queries(file_path):
18
 
19
  async def process_query(query_text, rag_instance, query_param):
20
  try:
21
- result, context = await rag_instance.aquery(query_text, param=query_param)
22
- return {"query": query_text, "result": result, "context": context}, None
23
  except Exception as e:
24
  return None, {"query": query_text, "error": str(e)}
25
 
 
18
 
19
  async def process_query(query_text, rag_instance, query_param):
20
  try:
21
+ result = await rag_instance.aquery(query_text, param=query_param)
22
+ return {"query": query_text, "result": result}, None
23
  except Exception as e:
24
  return None, {"query": query_text, "error": str(e)}
25