From 8f7818965e450ca3139a396e75cb71eaf4e19110 Mon Sep 17 00:00:00 2001 From: liubiren Date: Sat, 10 Oct 2026 19:45:23 +0800 Subject: [PATCH] 1 --- .../document_preprocess/{main.py => rag.py} | 2 +- .../跨境电商/跨境电商平台选择分析报告.md | 0 .../document_preprocess/vault/功能词条/下载报表.md | 10 ++++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) rename agent/application/document_preprocess/{main.py => rag.py} (99%) rename agent/application/document_preprocess/vault/{ => 业务资料}/跨境电商/跨境电商平台选择分析报告.md (100%) create mode 100644 agent/application/document_preprocess/vault/功能词条/下载报表.md diff --git a/agent/application/document_preprocess/main.py b/agent/application/document_preprocess/rag.py similarity index 99% rename from agent/application/document_preprocess/main.py rename to agent/application/document_preprocess/rag.py index 7d1f21d..babb1fc 100644 --- a/agent/application/document_preprocess/main.py +++ b/agent/application/document_preprocess/rag.py @@ -527,7 +527,7 @@ def hybrid_retrieve( keywords: list[str] | None = None, ) -> list[dict]: """ - 混合检索 + 混合检索(用于本地测试混合检索效果) :param text: 检索文本 :param keywords: 检索关键词列表 :return: 检索结果 diff --git a/agent/application/document_preprocess/vault/跨境电商/跨境电商平台选择分析报告.md b/agent/application/document_preprocess/vault/业务资料/跨境电商/跨境电商平台选择分析报告.md similarity index 100% rename from agent/application/document_preprocess/vault/跨境电商/跨境电商平台选择分析报告.md rename to agent/application/document_preprocess/vault/业务资料/跨境电商/跨境电商平台选择分析报告.md diff --git a/agent/application/document_preprocess/vault/功能词条/下载报表.md b/agent/application/document_preprocess/vault/功能词条/下载报表.md new file mode 100644 index 0000000..a9bbcc9 --- /dev/null +++ b/agent/application/document_preprocess/vault/功能词条/下载报表.md @@ -0,0 +1,10 @@ +--- +uid: 43da7704-fad5-414f-9055-4726b7af33a1 +--- +## 功能描述 +支持将报表数据导出为文件供用户获取。 + +## 实现方案 +1. 数据量小:同步,页面短暂等待直接返回文件流下载。 +2. 数据量大:异步任务后台生成文件,完成后消息通知用户,用户再去下载。 +3. 企业权限管控场景:发起下载需要提交钉钉审批,审批通过后才可获取文件。 \ No newline at end of file