From 85dae6a189a314e804cdfafb223e11ec36888a24 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Mon, 7 Jul 2025 11:12:27 +0800 Subject: [PATCH] 'commit' --- dsRagAnything/T3_Start.py | 3 +- .../Math/kv_store_llm_response_cache.json | 20 +++ dsRagAnything/static/ai.html | 169 +++++++++--------- 3 files changed, 103 insertions(+), 89 deletions(-) diff --git a/dsRagAnything/T3_Start.py b/dsRagAnything/T3_Start.py index d79dd3ee..6b8b40e1 100644 --- a/dsRagAnything/T3_Start.py +++ b/dsRagAnything/T3_Start.py @@ -62,7 +62,8 @@ async def rag(request: fastapi.Request): # 查询的问题 query = data.get("query") # 关闭参考资料 - query = query + "\n 不要输出参考资料!" + query = query + "\n 1、不要输出参考资料!" + query = query + "\n 2、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!" 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 51e4f506..d8fc9d81 100644 --- a/dsRagAnything/Topic/Math/kv_store_llm_response_cache.json +++ b/dsRagAnything/Topic/Math/kv_store_llm_response_cache.json @@ -2231,6 +2231,26 @@ "embedding_min": null, "embedding_max": null, "original_prompt": "小学数学中有哪些模型?\n 不要输出参考资料!" + }, + "cef372244b52137466d4538968bdef8e": { + "return": "{\"high_level_keywords\": [\"\\u5fae\\u79ef\\u5206\", \"\\u57fa\\u672c\\u5b9a\\u7406\", \"\\u6570\\u5b66\\u5206\\u6790\"], \"low_level_keywords\": [\"\\u5bfc\\u6570\", \"\\u79ef\\u5206\", \"\\u725b\\u987f-\\u83b1\\u5e03\\u5c3c\\u5179\\u516c\\u5f0f\", \"\\u51fd\\u6570\", \"\\u9762\\u79ef\"]}", + "cache_type": "keywords", + "chunk_id": null, + "embedding": null, + "embedding_shape": null, + "embedding_min": null, + "embedding_max": null, + "original_prompt": "微积分的基本定理是什么?\n 不要输出参考资料!" + }, + "7e5ce4bd3ec5160ecb223526b726b73d": { + "return": "{\"high_level_keywords\": [\"\\u5fae\\u79ef\\u5206\", \"\\u57fa\\u672c\\u5b9a\\u7406\", \"\\u6570\\u5b66\\u539f\\u7406\"], \"low_level_keywords\": [\"\\u5bfc\\u6570\", \"\\u79ef\\u5206\", \"\\u51fd\\u6570\", \"\\u5fae\\u5206\\u5b66\", \"\\u79ef\\u5206\\u5b66\"]}", + "cache_type": "keywords", + "chunk_id": null, + "embedding": null, + "embedding_shape": null, + "embedding_min": null, + "embedding_max": null, + "original_prompt": "微积分的基本定理是什么?\n 1、不要输出参考资料!\n 2、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!" } } } \ No newline at end of file diff --git a/dsRagAnything/static/ai.html b/dsRagAnything/static/ai.html index 77add2d4..13bcb71c 100644 --- a/dsRagAnything/static/ai.html +++ b/dsRagAnything/static/ai.html @@ -76,17 +76,17 @@ background-color: #2196F3; } - #saveWordBtn:hover { - background-color: #0b7dda; - } - .icon { margin-right: 5px; } @keyframes spin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } } .doc-links { @@ -96,18 +96,6 @@ align-items: center; } - .doc-link { - padding: 8px 15px; - background-color: #e7f3fe; - border-radius: 4px; - color: #2196F3; - text-decoration: none; - transition: all 0.3s; - } - - .doc-link:hover { - background-color: #d0e3fa; - } .doc-checkboxes { display: flex; @@ -200,39 +188,44 @@