Don't Retrieve, Navigate: Distilling Enterprise Knowledge into Navigable Agent Skills for QA and RAG
The paper introduces Corpus2Skill, a method that transforms document corpora into hierarchical, navigable skill trees to enable LLM agents to actively explore and reason about enterprise knowledge structures, thereby outperforming traditional retrieval-based approaches on QA benchmarks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Idea: Stop Searching, Start Exploring
Imagine you are a detective trying to solve a mystery in a massive, messy library.
The Old Way (Traditional RAG):
You ask the librarian, "Where is the book about changing my business from a sole proprietorship to an LLC?"
The librarian runs to the back, grabs the top 5 books that have the words "LLC" or "business" on the cover, and hands them to you.
- The Problem: You get five books. One is about taxes, one is about opening a bank account, and one is about legal forms. None of them actually tell you how to switch your business type because that specific rule is hidden in a different section of the library. You have to read all five books, guess which one matters, and hope you didn't miss the real answer. You are a passive consumer of whatever the librarian found.
The New Way (CORPUS2SKILL):
Instead of handing you random books, the library gives you a detailed, organized map of the entire building before you even start looking.
- You see a big sign: "Business & Finance."
- You walk over there and see a sign: "Legal Entity Changes."
- You walk down that hall and see a sign: "Switching Business Types."
- Finally, you find the exact door with the answer.
If you walk down the wrong hallway (e.g., "Tax Forms"), you realize immediately, "Oh, this isn't right," and you backtrack to try a different path. You are an active explorer with a map.
How It Works: The "Cooking" Analogy
The paper describes a two-step process: Compiling (Cooking) and Serving (Eating).
1. The Compile Phase (The Chef Prepares the Meal)
Before anyone ever asks a question, the system takes the messy pile of 6,000+ documents (like a giant bag of mixed ingredients) and organizes them.
- Clustering: It groups similar documents together (like putting all "vegetables" in one bin and all "spices" in another).
- Summarizing: For every group, it writes a short summary card (like a label on the bin saying "Spices: Chili, Cumin, Salt").
- Building the Tree: It creates a hierarchy.
- Level 1: Big categories (e.g., "Payments," "Marketing").
- Level 2: Sub-categories (e.g., "Credit Cards," "SEO").
- Level 3: Specific documents.
- The Result: A clean, navigable "Skill Tree" (like a well-organized pantry) is saved. This happens once, offline.
2. The Serve Phase (The Diner Orders)
When a user asks a question, the AI Agent doesn't search a database. It reads the menu.
- Step 1: The Agent sees the top-level categories. "Hmm, the user asked about changing business types. That sounds like 'Payments' or 'Legal'."
- Step 2: It opens the "Payments" folder and reads the summary. "Ah, there's a sub-folder called 'Account Management'."
- Step 3: It opens that folder, sees a list of specific articles, and picks the one titled "Changing Your Business Type."
- Step 4: It reads that single article and gives the answer.
If the Agent realizes "Payments" is the wrong path, it can close that folder and open "Legal" instead. It has agency.
Why Is This Better?
The paper tested this on a real customer support benchmark (WixQA) and found it beat the old methods in three key ways:
- It Sees the "Forest": Traditional search only sees the "trees" (individual documents). This system sees the whole forest. If a question spans two topics (e.g., "How do I change my currency for my online course?"), the Agent can look at the "Course" folder, realize it doesn't have the answer, and then look at the "Billing" folder to combine the two pieces of information.
- It Can Backtrack: If the Agent goes down a dead end, it knows it's a dead end because the summary said so. It can turn around and try a different path. Traditional search just gives you the wrong answer and you have to guess.
- No "Black Box": In traditional search, the AI doesn't know why it picked a document. In this system, the AI knows exactly which folder it came from and why it chose that path.
The Trade-off: Cost vs. Quality
- The Cost: This method uses more "tokens" (computing power) per question because the AI has to read the summaries of the folders as it navigates. It's like reading the menu before ordering, which takes a few seconds.
- The Benefit: The answers are much more accurate and factual. For complex business questions where getting it wrong is expensive (like legal or billing advice), the extra cost is worth it.
Summary Metaphor
- Traditional RAG is like asking a random person on the street for directions. They might point you to the right street, or they might point you to a dead end because they only know a few blocks.
- CORPUS2SKILL is like giving the traveler a GPS with a full map of the city. They can see the whole route, choose the best path, and if they take a wrong turn, they can instantly see the map and reroute.
The paper's main message is simple: Don't just let the AI search for answers. Give it a map so it can navigate to them.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.