zrguo
commited on
Commit
·
2902562
1
Parent(s):
9a811be
fix Step_3_openai_compatible.py
Browse files
reproduce/Step_3_openai_compatible.py
CHANGED
@@ -50,8 +50,8 @@ def extract_queries(file_path):
|
|
50 |
|
51 |
async def process_query(query_text, rag_instance, query_param):
|
52 |
try:
|
53 |
-
result
|
54 |
-
return {"query": query_text, "result": result
|
55 |
except Exception as e:
|
56 |
return None, {"query": query_text, "error": str(e)}
|
57 |
|
|
|
50 |
|
51 |
async def process_query(query_text, rag_instance, query_param):
|
52 |
try:
|
53 |
+
result = await rag_instance.aquery(query_text, param=query_param)
|
54 |
+
return {"query": query_text, "result": result}, None
|
55 |
except Exception as e:
|
56 |
return None, {"query": query_text, "error": str(e)}
|
57 |
|