From f1513355eda6fbfab9b77c6f8c16be1fe238bea9 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Sun, 6 Jul 2025 12:52:44 +0800 Subject: [PATCH] 'commit' --- dsRagAnything/{EndToEnd.py => T1_Train.py} | 10 +++++----- ...{load_existing_lightrag.py => T2_Query.py} | 2 +- .../kv_store_llm_response_cache.json | 20 +++++++++++++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) rename dsRagAnything/{EndToEnd.py => T1_Train.py} (93%) rename dsRagAnything/{load_existing_lightrag.py => T2_Query.py} (94%) diff --git a/dsRagAnything/EndToEnd.py b/dsRagAnything/T1_Train.py similarity index 93% rename from dsRagAnything/EndToEnd.py rename to dsRagAnything/T1_Train.py index bd74ed47..bd26d528 100644 --- a/dsRagAnything/EndToEnd.py +++ b/dsRagAnything/T1_Train.py @@ -108,11 +108,11 @@ async def main(): # 调用LightRAG的代码,包括:1、创建索引,2、查询知识库,不应该放在这个模块中完成,这里只需要完成到文本解析完成即可。 # Query the processed content # Pure text query - for basic knowledge base search - text_result = await rag.aquery( - "这个文档是做什么用的?", - mode="hybrid" - ) - print("Text query result:", text_result) + # text_result = await rag.aquery( + # "这个文档是做什么用的?", + # mode="hybrid" + # ) + # print("Text query result:", text_result) # # Multimodal query with specific multimodal content # multimodal_result = await rag.aquery_with_multimodal( diff --git a/dsRagAnything/load_existing_lightrag.py b/dsRagAnything/T2_Query.py similarity index 94% rename from dsRagAnything/load_existing_lightrag.py rename to dsRagAnything/T2_Query.py index a08cf3fc..eaec2b68 100644 --- a/dsRagAnything/load_existing_lightrag.py +++ b/dsRagAnything/T2_Query.py @@ -94,7 +94,7 @@ async def load_existing_lightrag(): # 查询已存在的知识库 result = await rag.aquery( - "这个 LightRAG 实例中处理了哪些数据?", + "黄琬乔的准考证信息告诉我一下?", mode="hybrid" ) print("查询结果:", result) diff --git a/dsRagAnything/rag_storage/kv_store_llm_response_cache.json b/dsRagAnything/rag_storage/kv_store_llm_response_cache.json index 06e63796..1526c7e5 100644 --- a/dsRagAnything/rag_storage/kv_store_llm_response_cache.json +++ b/dsRagAnything/rag_storage/kv_store_llm_response_cache.json @@ -161,6 +161,26 @@ "embedding_min": null, "embedding_max": null, "original_prompt": "这个 LightRAG 实例中处理了哪些数据?" + }, + "acce9b7b1b16929c11da762303f7083f": { + "return": "{\"high_level_keywords\": [\"\\u4e2a\\u4eba\\u4fe1\\u606f\", \"\\u8003\\u8bd5\\u4fe1\\u606f\"], \"low_level_keywords\": [\"\\u9ec4\\u742c\\u4e54\", \"\\u51c6\\u8003\\u8bc1\"]}", + "cache_type": "keywords", + "chunk_id": null, + "embedding": null, + "embedding_shape": null, + "embedding_min": null, + "embedding_max": null, + "original_prompt": "黄琬乔的准考证信息告诉我一下?" + }, + "9ce8581b308c488cf1c7969e207f21d9": { + "return": "根据提供的知识图谱和文档内容,以下是黄琬乔的第十四届蓝桥杯大赛青少组C++初级组准考证详细信息:\n\n### 个人信息\n- **姓名**: 黄琬乔 \n- **证件类型**: 身份证号 \n- **证件号码**: 220105201212060427(出生日期:2012年12月6日,参赛时约10岁) \n\n### 比赛信息\n- **准考证号**: 2305C10579(\"2305\"可能表示2023年5月比赛) \n- **比赛名称**: 第十四届蓝桥杯大赛青少组C++初级组 \n- **比赛时间**: 2023年5月14日 10:00~11:30(90分钟) \n- **比赛网址**: http://kao.lanqiaoqingshao.cn \n\n### 登录凭证\n- **登录名**: Ianqiao \n- **密码**: 542t96 \n\n### 其他关联信息\n- **主办方**: 蓝桥杯大赛组织委员会 \n- **技术环境要求**: 需安装C++5.1.1以上版本的IDE(与初级组对应) \n- **防作弊措施**: 需全程启用“微考试助手”监控工具 \n\n### 注意事项\n1. 需提前登录系统测试环境(自准考证下载日起开放公测) \n2. 设备要求:带前置摄像头和麦克风的电脑(Win10+/MAC OS10.9+)及备用手机(安装微信8.0.30+) \n3. 迟到30分钟将取消资格 \n\n---\n\n**References**: \n[KG] 黄琬乔2023蓝桥杯省赛准考证.pdf \n[DC] 黄琬乔2023蓝桥杯省赛准考证.pdf (Table Analysis & 注意事项)", + "cache_type": "query", + "chunk_id": null, + "embedding": null, + "embedding_shape": null, + "embedding_min": null, + "embedding_max": null, + "original_prompt": "黄琬乔的准考证信息告诉我一下?" } } } \ No newline at end of file