main
HuangHai 3 weeks ago
parent edfeb2a810
commit ab7e191ebf

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -4,19 +4,15 @@ from Util.LightRagUtil import configure_logging, initialize_rag, print_stream
from lightrag import QueryParam
# 数学
WORKING_DIR = "./Topic/Math"
TXT_FILE = "小学数学教学中的若干问题.txt"
WORKING_DIR = "./Math"
# 苏轼
#WORKING_DIR = "./Topic/Chinese"
#TXT_FILE = "sushi.txt"
async def main():
try:
rag = await initialize_rag(WORKING_DIR)
resp = await rag.aquery(
#"苏轼有几个妻子?",
"小学数学有哪些模型",
#"小学数学有哪些模型",
"小学数学中常用的公式有哪些?",
param=QueryParam(mode="hybrid", stream=True),
)
if inspect.isasyncgen(resp):

Loading…
Cancel
Save