main
HuangHai 4 days ago
parent 738fed390d
commit 1159fca824

@ -52,8 +52,6 @@ async def rag(request: fastapi.Request):
async def generate_response_stream(query: str):
try:
rag = await initialize_rag(WORKING_PATH)
await rag.initialize_storages()
await initialize_pipeline_status()
resp = await rag.aquery(
query=query,
param=QueryParam(mode=mode, stream=True, user_prompt=user_prompt, enable_rerank=True))

@ -5,11 +5,11 @@ from Util.DocxUtil import get_docx_content_by_pandoc
from Util.LightRagUtil import configure_logging, initialize_rag
import os
KEMU = 'ShiJi' # JiHe,Math,SuShi,Chemistry,ShiJi,ChangChun
KEMU = 'ChuZhongShuXue' # JiHe,Math,SuShi,Chemistry,ShiJi,ChangChun
# 组装文件路径
WORKING_DIR = "./Topic/" + KEMU
docx_file = '../static/Txt/'
docx_file = 'static/Txt/'
# 是不是清空重新生成
IS_CLEAR= False

File diff suppressed because one or more lines are too long

@ -17121,5 +17121,18 @@
"create_time": 1752820166,
"update_time": 1752820166,
"_id": "hybrid:keywords:d0a145b4c3911b2e27a1dea5c40e2ce3"
},
"hybrid:keywords:abd7e2d80b11ae50ee07dedc04f2c837": {
"return": "{\"high_level_keywords\": [\"\\u4eba\\u7269\\u5173\\u7cfb\\u56fe\", \"\\u96c6\\u56e2\\u7ed3\\u6784\", \"\\u7ec4\\u7ec7\\u5173\\u7cfb\"], \"low_level_keywords\": [\"\\u5218\\u5e2e\\u96c6\\u56e2\", \"\\u5218\\u5e2e\", \"\\u7ba1\\u7406\\u5c42\", \"\\u5458\\u5de5\", \"\\u90e8\\u95e8\"]}",
"cache_type": "keywords",
"chunk_id": null,
"embedding": null,
"embedding_shape": null,
"embedding_min": null,
"embedding_max": null,
"original_prompt": "生成刘帮集团的人物关系图",
"create_time": 1752822285,
"update_time": 1752822285,
"_id": "hybrid:keywords:abd7e2d80b11ae50ee07dedc04f2c837"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save