TL 复测校准(TL 实测 175:垃圾 vector 0.32-0.34/正常 0.63+;垃圾 final 0.19-0.20): 1. score_gate 双域双常量:MIN_VECTOR_SCORE=0.45(QA_MIN_VECTOR_SCORE,向量域, Qdrant score_threshold 与 search 预筛);MIN_SOURCE_SCORE=0.25 保持(chat 模式 final_score 后置过滤)。 2. pipeline answer():retrieval_only 无条件关 use_draft/use_planner(不看 llm.available,search 模式绝不产生答案);use_bge_rerank 强制关(免 CPU rerank,性能根治);候选按 vector_score 排序直接输出且 final_score= vector_score(与 Qdrant 阈值同域)。 3. Qdrant score_threshold 仅在 retrieval_only 路径传入(direct_flow retriever 参数化,0.45);chat 不传保召回;v16_retriever 还原(r4-28 的 0.25 全域阈值回退)。 4. 单测更新:search 无 LLM/无 rerank/0.45 滤 0.32 保 0.63/score 取 vector 域/chat 不传阈值;chat final 域 0.25 语义不变。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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 暂存目录。