This commit is contained in:
2025-08-31 13:24:31 +08:00
parent 6af46bec96
commit 448bd5c80e
5 changed files with 40 additions and 89 deletions

View File

@@ -46,7 +46,7 @@ async def get_xueban_response_async(query_text: str, stream: bool = True):
- 每次回答不要太长控制在3分钟以内
"""
# 打开文件读取知识内容
f = open(r"D:\dsWork\dsProject\dsLightRag\static\WanYouYinLi.txt", "r", encoding="utf-8")
f = open(r"D:\dsWork\dsProject\dsLightRag\static\YunXiao.txt", "r", encoding="utf-8")
zhishiContent = f.read()
zhishiContent = "选择作答的相应知识内容:" + zhishiContent + "\n"
query_text = zhishiContent + "下面是用户提的问题:" + query_text