Files
PlantAI-rag-new/agent
jerryandClaude Fable 5 dd54aa0e5d feat(web-search): S3 联网搜索(机制实例 1)+ 金标判定器防抖
- web_search.py: WebSearchCompleter(PubMed esearch+esummary 8s/重试1, Crossref 兜底 6s)
  + build_query 中文→英文查询构建(物种映射表+基因家族正则, 修 \b CJK 边界缺陷)
- pipeline.py: 证据采纳后 _maybe_web_search 确定性门控(请求开关 AND env 总闸 AND
  去重公开引用数 < min_evidence; 修 selected 恒 30 无信号缺陷)
- answer_composer.py: web_results 段 + SYSTEM Web 引用规则
- config.py: enable_web_search/max_results(4)/timeout(8)/max_chars(1200)
- sse_relay.py: STAGE 映射 +web_search_started/completed(11→13)
- capabilities.yaml: web_search manifest(http provider)
- env: QA_V1_ENABLE_WEB_SEARCH=0 等 4 键(example+真实)
- run_golden.py: LLM 方差防抖(FAIL 复跑一次,两次都 FAIL 才算回归;
  GI-005 实测三次采样 key_hit 0.6/0.8/0.4 横跨阈值)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-02 15:44:31 +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 暂存目录。