Back to catalog / Agent workflows
Compare service information across cities in a difference matrix
Create a DocumentAgent per city and compare the same service dimensions with source-backed differences.
Goal
Create a DocumentAgent per city and compare the same service dimensions with source-backed differences.
Steps
- Index documents by city with summary/vector tools and source metadata. [source-anthropic-compare-city-service-options-across-documents]
- Query each city with fixed questions and build a normalized comparison table. [source-anthropic-compare-city-service-options-across-documents]
- Distinguish missing data from real differences; cite every table cell. [source-anthropic-compare-city-service-options-across-documents]
How to verify
Check that every city/service cell links to a document passage and date; show conflicting values side by side instead of merging them.
Troubleshooting
If a city has missing fields, inspect its document index and retrieval scope; mark unsupported cells unknown rather than filling them in.
Permissions
Prerequisites
- Python, LlamaIndex, Anthropic API, and authorized city documents; use notebook test data.
Permissions
- Reads approved city documents and sends relevant text to the model API; creates a comparison matrix without personal-data access or automatic publication.
Limitations
Run the source on isolated test data, then check outputs and dependency versions before adapting it.
Pinned upstream source
- Repository
- anthropics/anthropic-cookbook
- File path
- third_party/LlamaIndex/Multi_Document_Agents.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