Policy, legal and compliance documents point to other sections all the time. A person follows those pointers without thinking. An AI agent often does not. Many pilots stall on exactly this gap. We built a Metadata Search Tool to help agents follow references, and this post explains how it works.
It sits on top of retrieval-augmented generation (RAG), where the AI looks up your documents before it answers.
The challenge of following references
Picture an agent asked about a rule in "Section 4.2.1" of a policy. The first passage it finds often just says to see another section. That passage is a signpost, not the answer.
Standard search matches meaning. It does not know that "Section 4.2.1" is a specific place in the document. So the agent stops at the signpost and gives a thin answer.
Why a knowledge graph is hard to run
One known fix is GraphRAG. It builds a map of the links between ideas in your documents while it prepares them for search. The map can work well. In production it brings problems:
- Many fixed rules. Someone must decide how links are created and how duplicate items are merged. These rules take time to write and maintain.
- Costly updates. Changing one document can force the system to rebuild large parts of the map. That makes it hard to keep up with documents that change often.
- Extra cost for uncertain gain. Summaries of whole groups of topics add computing time and delay. Test whether your users really need them.
A lighter approach: the Metadata Search Tool
We skip the fixed map. While preparing documents, we pull out simple labels, such as section numbers and citation keys. We store them next to the text. Metadata just means data that describes the document, like a section label.
How documents are prepared
We build a second search index beside the main one. It holds short labels, which we call aliases. Each alias is another way to reach the same passage.
For example, a corporate policy is stored under its full text and also under the alias "Section 4.2.1." You describe what the aliases should hold in a plain-language prompt. When your document layout changes, you change the prompt, not a rule set.
How the agent searches
The agent chooses which index to use. It first searches by meaning to find a starting passage. If that passage points to "Section X.Y," the agent looks up that label in the alias index. It then reads the exact section.
Two kinds of references
- Explicit references. These are direct citations, common in legal and academic documents. The agent follows the label to the section.
- Implicit references. These are links by topic. The agent can gather every passage that discusses one entity, such as a named supplier or product. This helps with questions that need several documents.
How we approach it
We do not treat this as a tool to hand over and leave. Our forward-deployed engineers work inside your team. We start with the documents and questions your people actually use, and we look at where answers fail today.
Then we build the first version of the agent against your real files. Your experts check the answers. We adjust the aliases and prompts until the agent follows references the way your reviewers would.
Finally, we hand it over. Your team learns how to change the prompts, add new document types and watch quality. This is the same path we describe on our process page.
How to test it on your own data
Do not trust any vendor's benchmark, including ours. Test on your documents instead.
- Collect questions your staff find hard, where the answer sits behind a reference.
- Run them with content search only. Then run them with content and metadata search.
- Have an expert mark each answer right or wrong, and note how many steps the agent took.
If the second setup gets more answers right in fewer steps, it is worth taking further.
What this means for business leaders
- Agents that cannot follow references give half answers in legal, finance and compliance work.
- A simpler setup is cheaper to run and easier for your team to own after handover.
- Ask any vendor to show results on your documents, judged by your experts.
Next step
If your team has document agents that miss cross-references in pilot but not in production, book a discovery call.
Saksham Gupta
Founder & CEO, EduBildSaksham Gupta is the founder and CEO of EduBild, which embeds forward-deployed AI engineers with enterprise teams to ship production AI. Ex-Daimler AG; KIT Germany.



