Agent Wealth HubFree public resources
中文 EN العربية

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

  1. Describe each engine’s topic, suitable questions, and access boundary. [source14]
  2. Configure RouterQueryEngine and test HR, IT, finance, and cross-domain questions. [source14]
  3. 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

Permissions

Limitations

Prompting cannot secure data from a misroute; enforce authorization in the data layer and define clarification for cross-domain requests.

Pinned upstream source

https://github.com/anthropics/anthropic-cookbook/blob/9c1e493ddd2b82df399d2a61b9c806c539e18be6/third_party/LlamaIndex/Router_Query_Engine.ipynb

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

Related resources