Turning a corpus into a skill tree cuts RAG hallucination from 50% to 4.5%
Notes on Don't Retrieve, Navigate: Distilling Enterprise Knowledge into Navigable Agent Skills for QA and RAG (arXiv:2604.14572) — Yiqun Sun, Peng Wei, Lawrence B. Hsieh · April 2026
Note published · written by SkillFed’s research pipeline from the paper above · how these notes are made
AI-assisted notes · reviewed by SkillFed Skill retrievalCorpus2Skill turns a document corpus into something an agent walks instead of queries. An offline compile pass embeds every document, clusters them hierarchically with K-Means, and has an LLM write a summary at each level, producing a tree of SKILL.md and INDEX.md files plus a cross-branch entity index — the same filesystem format and progressive disclosure mechanism used for procedural agent skills, repurposed here to describe what a corpus contains rather than how to do a task. At serve time the agent is preloaded with only skill names and one-line descriptions, then drills from a top-level summary through progressively finer INDEX.md files down to a specific document, backing out of branches that turn out thin. Five baselines take the comparison on WixQA, an enterprise customer-support benchmark of 6,221 support articles and 200 expert-written queries with gold answers: BM25, dense embedding retrieval, hybrid retrieval, RAPTOR-style hierarchical retrieval, and an agentic RAG agent with search tools.
Navigation wins on every quality metric on WixQA. Token F1 lands at 0.456, a 21% relative gain over agentic RAG (0.378) and 25% over dense retrieval (0.364), with factuality 6 points above the next-best method. It grounds better too: hallucination rate falls to 4.5%, against 50% for the same agent searching instead of navigating — though it costs more, at $0.153 per query versus $0.082 for agentic RAG and $0.007–$0.012 for the single-shot retrievers. Swapping the serving model from Sonnet 4.6 to Haiku 4.5 cuts that to $0.093 (−39%) while keeping 92% of the F1 score, which suggests the compiled tree does most of the work, not the model walking it. A follow-up sweep across ten RAGBench subsets complicates the picture: navigation wins on five single-domain sets (by 0.01–0.14 F1), ties on two heterogeneous ones, and loses on three — an open-domain factoid pool, a homogeneous-tabular corpus, and a long-extractive-document set — by 0.04–0.17 F1, because their top-level cluster summaries collapse into generic, indistinguishable labels.
Key numbers
| Token F1 vs. agentic RAG | 0.456 vs. 0.378 (+21% relative) |
| Hallucination rate vs. agentic RAG | 4.5% vs. 50% |
| Cost per query | $0.153 (1.9x agentic RAG, 13-22x flat retrieval) |
| RAGBench 10-subset split | 5 wins, 2 ties, 3 losses (0.04-0.17 F1 swing) |
| Misrouting failures on WixQA | 19 of 45 flagged failures traced to wrong top-level branch |
Skills related to this research
Related notes
- A fine-tuned 8B retriever hits 83 NDCG@10 — a 12B off-the-shelf model manages 55 →
- Forced to search a 34k-skill library instead of being handed the right one, agents' pass rate falls from 55.4% to 38.4% -- a hair above the 35.4% no-skill floor →
- Even a Purpose-Built Reranker Nails the Full Skill Set Only 32% of the Time →
- Compiling skills into LoRA weights beats prompting them in-context by up to 21 points, on 64% fewer prefill tokens →
- Retrieving the right skill lifts coding Pass@1 78%, reaching 84% of oracle-level performance →
- A skill grown from a 35B model's traces adds 57.65 points to a 122B agent on table QA it's never seen →
- Wrapping a harmful request inside a skill file nearly triples model harm scores, from 0.27 to 0.76 →
- Self-repairing skills add 8.4 points — raw context alone scores worse than no skills at all →
- Agents Writing Their Own Skills Close Just 45% of the Gap to Human Authors →
References
- Sun, Wei & Hsieh (2026). Don't Retrieve, Navigate: Distilling Enterprise Knowledge into Navigable Agent Skills for QA and RAG. arXiv:2604.14572.
- Sarthi et al. (2024). RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval. ICLR.
- Lewis et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. NeurIPS 33.
- Cohen et al. (2025). WixQA: A Multi-Dataset Benchmark for Enterprise Retrieval-Augmented Generation. arXiv:2505.08643.
- Friel, Belyi & Sanyal (2024). RAGBench: Explainable Benchmark for Retrieval-Augmented Generation Systems. arXiv:2407.11005.