This commit is contained in:
Larfii
2024-10-08 10:38:50 +08:00
parent 286e5319b9
commit 44463503fd
11 changed files with 90 additions and 18 deletions

View File

@@ -1,6 +1,5 @@
import os
import sys
sys.path.append('xxx/xxx/LightRAG')
from lightrag import LightRAG

View File

@@ -1,6 +1,5 @@
import os
import sys
sys.path.append('xxx/xxx/LightRAG')
from lightrag import LightRAG, QueryParam
@@ -13,5 +12,5 @@ rag = LightRAG(working_dir=WORKING_DIR)
mode = 'global'
query_param = QueryParam(mode=mode)
result, _ = rag.query("", param=query_param)
result = rag.query("", param=query_param)
print(result)