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

Method query

LightRAG/lightrag/lightrag.py:412–414  ·  view source on GitHub ↗
(self, query: str, param: QueryParam = QueryParam())

Source from the content-addressed store, hash-verified

410 await self._insert_done()
411
412 def query(self, query: str, param: QueryParam = QueryParam()):
413 loop = always_get_an_event_loop()
414 return loop.run_until_complete(self.aquery(query, param))
415
416 async def aquery(self, query: str, param: QueryParam = QueryParam()):
417 if param.mode in ["local", "global", "hybrid"]:

Callers 15

test.pyFile · 0.45
test_neo4j.pyFile · 0.45
_get_node_dataFunction · 0.45
_get_edge_dataFunction · 0.45
naive_queryFunction · 0.45
query_endpointFunction · 0.45

Calls 3

aqueryMethod · 0.95
QueryParamClass · 0.85
always_get_an_event_loopFunction · 0.70

Tested by

no test coverage detected