WeKnora/config
wizardchen 62bb9da270 fix(agent): score search_knowledge reranks with the document title
The agent searched seven times for "Echo 开放权重模型 降低成本". Hybrid
retrieval ranked the right chunk first (RRF rank 0) every time, but the
rerank model saw only the chunk text, which never names Echo or cost;
it scored 0.0025 and all 18 candidates fell below the 0.15 fallback
floor. The tool reported "No matching chunks", and the model cycled
hybrid -> semantic -> keyword, which cannot help since every mode shares
the same rerank check. Scoring the same chunk with its document title
("Show HN: Echo - ... at 1/3 the cost using open-weight models") gives
0.45, and 0.55 for the query written as a question.

- Rerank passages are title + enriched chunk (rerankPassage); FAQ chunks
  keep their own question, and the pattern filter still sees chunk text
  only.
- When retrieval found candidates but the rerank model rejected all of
  them, the empty statement says so and that switching mode will not
  help, instead of "No matching chunks".
- The tool description, query schema and agent system prompt ask for a
  complete natural-language question in hybrid/semantic mode rather than
  a keyword list, and drop "switch mode" as the retry advice. Every
  keyword engine matches any token (OR + BM25), so a question costs the
  keyword leg no recall; on the same 20 bases the Echo chunks rank the
  same for both query styles.
2026-09-18 15:33:56 +08:00
..
prompt_templates fix(agent): score search_knowledge reranks with the document title 2026-09-18 15:33:56 +08:00
agent_type_presets.yaml refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
builtin_agents.yaml refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
builtin_models.yaml.example feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
config.yaml feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00