Multi-agent data pipeline for demand modeling
From a research question to a validated, analysis-ready dataset.
Index Search automates the most time-consuming part of building demand and forecasting models: sourcing, reconciling and validating time series from public statistical databases. Describe the variables you need in plain English. Specialised AI agents identify the right series across the World Bank, Eurostat, UN Comtrade, the IMF and FRED, while deterministic code retrieves, verifies and harmonises every value into a documented panel.
The live demo runs the real agents on your own question and needs the access code from my application. Without a code, the recorded run below shows the full result.
How it works
-
1PlanAI
A parser agent reads the request and writes
plan.json: one variable per concept, the best source, countries, frequency, window and an aggregation rule. A person reviews it before anything is downloaded. -
2SearchAI
One scout agent per variable searches its source's catalog with tools. A selection is rejected unless its code and every filter appeared in a real catalog result, so a hallucinated series ID cannot get through.
-
3CheckAI + Python
Every series is verified three ways: an AI identity check against the request, an independent re-download of sample points, and a statistical anomaly screen.
-
4DeliverPython
Deterministic code builds the panel with explicit resampling rules and writes an Excel file, a data dictionary and a report of findings, caveats and next steps.
Key facts
- AI decides, code executesThe model chooses which series fits; downloading, resampling, statistics and file writing are deterministic Python. The model never touches a number.
- 5 public data sourcesWorld Bank, Eurostat, UN Comtrade, IMF (including forecasts) and FRED, each with its own catalog search and geography mapping.
- 3-layer QAIdentity check, spot re-download and anomaly screen. Series that fail are excluded and listed with the reason; nothing is silently dropped.
- Hard cost limitEvery model call reserves its worst-case cost in a per-run budget before it is sent. The example run below cost $0.11 in 28 calls.
- Tested and typed49 offline tests with pytest, ruff, mypy --strict and CI on Python 3.11 and 3.12.
- StackPython, FastAPI, Gemini (smart model for planning and reporting, fast model for scouts and QA), openpyxl, plain HTML/CSS/JS front end.
Example run
A recorded run from the real app, replayed from its saved files. This page is read-only: it makes no AI calls and needs no server or API key.
The example run could not be loaded. Check that run/run-data.js exists (run scripts/build_run_data.py).
Recorded run
Question
How the agents worked AI Python
Variables
Result
>>> panel.head(10)
Report
Columns, sources and coverage
| Column | Source · code | Unit | Coverage | Transformation |
|---|