Back to catalog / Agent workflows
Route an employee question to the right knowledge base
Wrap HR, IT, and finance indexes as query engines and route to the right source.
Goal
Wrap HR, IT, and finance indexes as query engines and route to the right source.
Steps
- Describe each engine’s topic, suitable questions, and access boundary. [source14]
- Configure RouterQueryEngine and test HR, IT, finance, and cross-domain questions. [source14]
- Check routes and citations; clarify unmatched or cross-domain questions without leaking data. [source14]
How to verify
Trace the target engine for HR, IT, finance, and cross-domain questions; confirm answers cite only authorized index chunks.
Troubleshooting
For misroutes, refine engine topic descriptions and boundaries; for cross-domain leakage, narrow index access and retest.
Permissions
Prerequisites
- Python, LlamaIndex, Anthropic API key, three test knowledge bases.
Permissions
- Queries and retrieved chunks go to the Anthropic API; LlamaIndex routing is not an access boundary, so enforce authorization on each HR/IT/finance index.
Limitations
Prompting cannot secure data from a misroute; enforce authorization in the data layer and define clarification for cross-domain requests.
Pinned upstream source
- Repository
- anthropics/anthropic-cookbook
- File path
- third_party/LlamaIndex/Router_Query_Engine.ipynb
- Pinned commit
9c1e493ddd2b82df399d2a61b9c806c539e18be6- Source checked
- 2026-10-14 · Reviewed against the pinned upstream source
Repository metrics
These values describe the upstream repository, not popularity or likes for an individual skill or playbook.
- Stars
- Not collected
- Forks
- Not collected
- Observed at
- Not collected
No metrics snapshot is available yet.
License: MIT
Main topic
Turn ecommerce campaign materials into a reviewable weekly brief