mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-01 17:16:51 +00:00
✨ feat(GraphRAG): enhance GraphRAG by graph community summary (#1801)
Co-authored-by: Florian <fanzhidongyzby@163.com> Co-authored-by: KingSkyLi <15566300566@163.com> Co-authored-by: aries_ckt <916701291@qq.com> Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: yvonneyx <zhuyuxin0627@gmail.com>
This commit is contained in:
@@ -112,13 +112,15 @@ def arguments(space_id: str):
|
||||
|
||||
|
||||
@router.post("/knowledge/{space_name}/recall_test")
|
||||
def recall_test(
|
||||
async def recall_test(
|
||||
space_name: str,
|
||||
request: DocumentRecallTestRequest,
|
||||
):
|
||||
print(f"/knowledge/{space_name}/recall_test params:")
|
||||
try:
|
||||
return Result.succ(knowledge_space_service.recall_test(space_name, request))
|
||||
return Result.succ(
|
||||
await knowledge_space_service.recall_test(space_name, request)
|
||||
)
|
||||
except Exception as e:
|
||||
return Result.failed(code="E000X", msg=f"{space_name} recall_test error {e}")
|
||||
|
||||
|
Reference in New Issue
Block a user