From 6a0dac9ee704658e9cba4939e9f7c75938edb38e Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Mon, 7 Jul 2025 11:20:43 +0800 Subject: [PATCH] 'commit' --- dsRagAnything/T3_Start.py | 6 +++--- .../Topic/Math/kv_store_llm_response_cache.json | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/dsRagAnything/T3_Start.py b/dsRagAnything/T3_Start.py index 718d2f07..b2306766 100644 --- a/dsRagAnything/T3_Start.py +++ b/dsRagAnything/T3_Start.py @@ -62,9 +62,9 @@ async def rag(request: fastapi.Request): # 查询的问题 query = data.get("query") # 关闭参考资料 - #query = query + "\n 1、不要输出参考资料!" - query = query + "\n 1、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!" - query = query + "\n 2、按照知识库内容进行回答,可适当扩展,但不要随意发散!" + query = query + "\n 1、不要输出参考资料 或者 References !" + query = query + "\n 2、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!" + 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 08aa57e8..e7b741a4 100644 --- a/dsRagAnything/Topic/Math/kv_store_llm_response_cache.json +++ b/dsRagAnything/Topic/Math/kv_store_llm_response_cache.json @@ -2281,6 +2281,16 @@ "embedding_min": null, "embedding_max": null, "original_prompt": "小学数学中有哪些模型?\n 1、不要输出参考资料!\n 2、如果问题与提供的知识库内容不符,则明确告诉未在知识库范围内提到!\n 3、按照知识库内容进行回答,可适当扩展,但不要随意发散!" + }, + "660cad009d0324583ce88c4912f21c8d": { + "return": "{\"high_level_keywords\": [\"\\u5c0f\\u5b66\\u6570\\u5b66\", \"\\u6570\\u5b66\\u6a21\\u578b\", \"\\u6559\\u80b2\\u5185\\u5bb9\"], \"low_level_keywords\": [\"\\u6a21\\u578b\", \"\\u6570\\u5b66\\u6559\\u5b66\", \"\\u8bfe\\u7a0b\\u5185\\u5bb9\"]}", + "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