From 7cd125da445870d45ef9d888b66d2d5808e34cd8 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Mon, 7 Jul 2025 15:58:41 +0800 Subject: [PATCH] 'commit' --- dsRagAnything/Doc/RagAnything配置.md | 2 +- dsRagAnything/Start.py | 2 +- .../Math/kv_store_llm_response_cache.json | 20 +++++++++++++++++++ dsRagAnything/static/ai.html | 8 ++++---- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/dsRagAnything/Doc/RagAnything配置.md b/dsRagAnything/Doc/RagAnything配置.md index dfbf90e7..b9670959 100644 --- a/dsRagAnything/Doc/RagAnything配置.md +++ b/dsRagAnything/Doc/RagAnything配置.md @@ -41,7 +41,7 @@ https://mirrors.nju.edu.cn/tdf/libreoffice/stable/25.2.4/win/x86_64/LibreOffice_ ```cmd # 安装RagAnything -pip install raganything pycocotools timm detectron2 +pip install raganything pycocotools timm detectron2 sse_starlette # 安装包 # pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/ diff --git a/dsRagAnything/Start.py b/dsRagAnything/Start.py index b2306766..ae8e0974 100644 --- a/dsRagAnything/Start.py +++ b/dsRagAnything/Start.py @@ -64,7 +64,7 @@ async def rag(request: fastapi.Request): # 关闭参考资料 query = query + "\n 1、不要输出参考资料 或者 References !" query = query + "\n 2、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!" - query = query + "\n 3、按照知识库内容进行回答,可适当扩展,但不要随意发散!" + query = query + "\n 3、严格按照知识库内容进行回答,不要进行推理!知识库中条目清晰体现的才算答案。" async def generate_response_stream(query: str): try: diff --git a/dsRagAnything/Topic/Math/kv_store_llm_response_cache.json b/dsRagAnything/Topic/Math/kv_store_llm_response_cache.json index e7b741a4..fc75fd6c 100644 --- a/dsRagAnything/Topic/Math/kv_store_llm_response_cache.json +++ b/dsRagAnything/Topic/Math/kv_store_llm_response_cache.json @@ -2291,6 +2291,26 @@ "embedding_min": null, "embedding_max": null, "original_prompt": "小学数学中有哪些模型?\n 1、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!\n 2、按照知识库内容进行回答,可适当扩展,但不要随意发散!" + }, + "1aeec13410f14223c05d3a4e4207d1cc": { + "return": "{\"high_level_keywords\": [\"\\u5c0f\\u5b66\\u6570\\u5b66\", \"\\u6570\\u5b66\\u6a21\\u578b\", \"\\u6559\\u80b2\\u5185\\u5bb9\"], \"low_level_keywords\": [\"\\u6a21\\u578b\\u7c7b\\u578b\", \"\\u6559\\u5b66\\u65b9\\u6cd5\", \"\\u8bfe\\u7a0b\\u7ed3\\u6784\"]}", + "cache_type": "keywords", + "chunk_id": null, + "embedding": null, + "embedding_shape": null, + "embedding_min": null, + "embedding_max": null, + "original_prompt": "小学数学中有哪些模型?\n 1、不要输出参考资料 或者 References !\n 2、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!\n 3、严格按照知识库内容进行回答,不要进行推理!知识库中条目清晰体现的才算答案。" + }, + "5cfe38f12c7e487e3b06c9a8159d0468": { + "return": "{\"high_level_keywords\": [\"\\u5c0f\\u5b66\\u6570\\u5b66\", \"\\u5e38\\u89c1\\u6a21\\u578b\", \"\\u6570\\u5b66\\u6559\\u5b66\"], \"low_level_keywords\": [\"\\u52a0\\u51cf\\u6cd5\\u6a21\\u578b\", \"\\u4e58\\u9664\\u6cd5\\u6a21\\u578b\", \"\\u51e0\\u4f55\\u56fe\\u5f62\\u6a21\\u578b\", \"\\u5e94\\u7528\\u9898\\u6a21\\u578b\"]}", + "cache_type": "keywords", + "chunk_id": null, + "embedding": null, + "embedding_shape": null, + "embedding_min": null, + "embedding_max": null, + "original_prompt": "小学数学中有哪些常见模型?\n 1、不要输出参考资料 或者 References !\n 2、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!\n 3、严格按照知识库内容进行回答,不要进行推理!知识库中条目清晰体现的才算答案。" } } } \ No newline at end of file diff --git a/dsRagAnything/static/ai.html b/dsRagAnything/static/ai.html index 0a13340b..7e065dee 100644 --- a/dsRagAnything/static/ai.html +++ b/dsRagAnything/static/ai.html @@ -190,17 +190,17 @@