MCPcopy Create free account
hub / github.com/NanGePlus/LightRAGTest / process_query

Function process_query

LightRAG/reproduce/Step_3.py:19–24  ·  view source on GitHub ↗
(query_text, rag_instance, query_param)

Source from the content-addressed store, hash-verified

17
18
19async 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
26
27def always_get_an_event_loop() -> asyncio.AbstractEventLoop:

Callers 1

Calls 1

aqueryMethod · 0.80

Tested by

no test coverage detected