Merge pull request #177 from WinstonCHEN1/main
Browse files- 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
|
22 |
-
return {"query": query_text, "result": result
|
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 |
|