From 15107185d8e3029a61c3e9ed0c616fcc89f13b49 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Sat, 12 Jul 2025 19:00:05 +0800 Subject: [PATCH] 'commit' --- dsLightRag/Start.py | 7 ++++--- dsLightRag/static/ShiJi.html | 13 ++++++++++--- dsLightRag/static/logo.jpg | Bin 0 -> 11331 bytes 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 dsLightRag/static/logo.jpg diff --git a/dsLightRag/Start.py b/dsLightRag/Start.py index c8ec8f02..9d20cde5 100644 --- a/dsLightRag/Start.py +++ b/dsLightRag/Start.py @@ -54,10 +54,11 @@ async def rag(request: fastapi.Request): # 查询的问题 query = data.get("query") # 关闭参考资料 - user_prompt = "\n 1、不要输出参考资料 或者 References !" - user_prompt = user_prompt + "\n 2、资料中提供化学反应方程式的,一定要严格按提供的Latex公式输出,绝对不允许对Latex公式进行修改 !" + #user_prompt = "\n 1、不要输出参考资料 或者 References !" + user_prompt = "\n 2、资料中提供化学反应方程式的,一定要严格按提供的Latex公式输出,绝对不允许对Latex公式进行修改 !" user_prompt = user_prompt + "\n 3、如果资料中提供了图片的,一定要严格按照原文提供图片输出,不允许省略或不输出!" - user_prompt = user_prompt + "\n 4、资料中提到的知识内容,需要判断是否与本次问题相关,不相关的绝对不要输出!" + #user_prompt = user_prompt + "\n 4、资料中提到的知识内容,需要判断是否与本次问题相关,不相关的绝对不要输出!" + user_prompt = user_prompt + "\n 4、根据资料回答问题,可以适当拓展一下内容进行回答!" user_prompt = user_prompt + "\n 5、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!" user_prompt = user_prompt + "\n 6、发现输出内容中包含Latex公式的,一定要检查是不是包含了$$或$的包含符号,不能让Latex无包含符号出现!" # 使用PG库后,这个是没有用的,但目前的项目代码要求必传,就写一个吧。 diff --git a/dsLightRag/static/ShiJi.html b/dsLightRag/static/ShiJi.html index 48a907ce..7ee109fa 100644 --- a/dsLightRag/static/ShiJi.html +++ b/dsLightRag/static/ShiJi.html @@ -175,7 +175,7 @@
请在下方输入您的问题,答案将在此处显示
@@ -193,6 +193,13 @@