Files
PlantAI-rag-new/agent
adminandClaude Fable 5 28bee31d00 fix(r4-28): 检索相关性下限,无关问题空 sources
_select_graph_balanced 引入相关性下限 0.25(score_gate.py 具名常量,
env QA_MIN_SOURCE_SCORE 可覆盖):低于下限的候选不入选,全部低于下限
返回空;graph 配额语义不变,audit 增 min_source_score/below_min_source_score。
Qdrant 查询(direct_flow_retriever/v16_retriever 两处)加同源 score_threshold
双保险(collection distance=Cosine,0.25 与垃圾实测带 0.19-0.20 留余量、
远低于正常命中 >0.7)。pc_retriever 为禁用后端,零改动。
新增 test_score_gate.py:30 低->0、5 高+25 低->5、graph 配额、env 覆盖。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 14:18:56 +08:00
..

agent/ —— 底层服务三件套

目录 服务 端口 入口(白名单明文) conda
qa/ QA V1.1.73 断言锚定检索 8091 scripts/qa_v1_1_73_server.py plantai-rag-new-venv
methodology/ Methodology 提取 8092 scripts/methodology_server.py plantai-rag-new-venv
legacy-rag/ 旧路由族(app 3 路由/main 11 族) 8093 api/app.py plantai-rag-new-venv
vendor/ 共享源码池(非服务) — — —

约束:仅 shell 启动(scripts/{start,stop,status,restart}.sh);编译产物 .so 隐藏源码;compile.manifest 记录模块级白名单。vendor 为源码单份,编译时复制进各 agent 暂存目录。