Skip to content

Commit

Permalink
fix: remove eval inferface
Browse files Browse the repository at this point in the history
  • Loading branch information
gusye1234 committed Sep 7, 2024
1 parent c14df96 commit ec15ba3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions nano_graphrag/graphrag.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ def query(self, query: str, param: QueryParam = QueryParam()):
loop = always_get_an_event_loop()
return loop.run_until_complete(self.aquery(query, param))

def eval(self, querys: list[str], contexts: list[str], answers: list[str]):
loop = always_get_an_event_loop()
return loop.run_until_complete(self.aeval(querys, contexts, answers))

async def aquery(self, query: str, param: QueryParam = QueryParam()):
if param.mode == "local" and not self.enable_local:
raise ValueError("enable_local is False, cannot query in local mode")
Expand Down Expand Up @@ -302,9 +298,6 @@ async def ainsert(self, string_or_strings):
finally:
await self._insert_done()

async def aeval(self, querys: list[str], contexts: list[str], answers: list[str]):
pass

async def _insert_done(self):
tasks = []
for storage_inst in [
Expand Down

0 comments on commit ec15ba3

Please sign in to comment.