Problem
Data engineers and analysts spend a significant amount of time on routine work when a data quality incident appears: finding tables, tracing where a column comes from, and running the same diagnostic queries. In large warehouses with many linked objects and distributed teams, Confluence pages and manual runbooks scale badly and go stale. The authors say the speed of detecting and diagnosing incidents directly affects the operational resilience of the business.
Example from the article: a user asks about the value of risk_category in a loan-risk view, and the system has to explain where the column comes from and why some customers get NULL or UNKNOWN.
Solution in brief
Five narrow LLM agents (Catalog, Data, Lineage, Audit, Investigation) each get their context from a metadata adapter. A router sends each question to one agent: keyword rules first, a short LLM call only for ambiguous questions. Database access is read-only, and in Investigate mode diagnostic SQL is proposed but never run.
Questions this case answers
- How to route free-form questions about a database to specialized LLM agents cheaply and predictably, with a safe fallback when the router is unsure
- How to let an LLM agent investigate a suspicious data value while keeping all database access read-only and every generated query reviewable
- How to recover the origin of a derived column from metadata alone, without reading the underlying data
- How to speed up the investigation of a data quality incident when the team spends hours navigating the warehouse catalog and tracing data lineage by hand?
Tools and methods
- GigaChat, LangGraph — LLM and agent framework behind the agents
- Streamlit — web interface that starts each agent as a separate process
- Pydantic — schema for the router's JSON answer
- Langfuse — logging of router decisions
- PostgreSQL — example database; metadata adapter reads
pg_catalogandinformation_schema
Google or a one-time email code. No password.