Metadata-Driven AI: An Architectural Pattern for Sustainable Data Analysis with LLMs
Renaud Pawlak, Armen Sulejmani, Jordi Cabot
Abstract
Large Language Models (LLMs) let users analyse data in natural language, either by giving the data to the model to read directly or by having the model generate code to process it. Both routes send the data, or fragments of it, to the model; both pay for inference on every run; and the code a model writes to answer a question is usually discarded once the question is answered. We present Metadata-Driven AI, an architectural pattern that keeps the data away from the model and turns each analysis into a reusable program. Only metadata (not the actual data) crosses a one-way inference boundary to the LLM. The program the LLM returns runs next to the data and is kept, so that inference is paid once per analysis rather than once per run. We describe the pattern together with a simple cost model, a measurement of how little information crosses the boundary on public datasets, and a benchmark showing that a small, locally hosted model can serve as the generator. We illustrate the pattern on three applications, each built on a different implementation of it: geospatial photovoltaic prospection over live public APIs, extraction of portfolio positions from bank statements, and a conversational assistant over smart-city dashboards.
Create a lesson
Related papers
Keeping Up with the Kernel: Can LLMs Adapt Linux Drivers to Interface Changes?
Shared title terminology · Xinrui Yang, Jiawen Liu, Arina Kharlamova et al.
BugGen 2.0: Rethinking the Roles of LLMs for Scalable RTL Bug Synthesis
Shared title terminology · Minh Luu, Michael Quinn, Aakash Tyagi et al.
Think Before You Code: A Benchmark for Testing LLMs on Software Engineering Deliberation
Shared title terminology · Ashman Mehra
Training for sustainable scientific software in the AI era: from code production to scientific stewardship
Shared title terminology · Juliette Alimena
Operating an Agent-Driven Dataset Factory: Discovery, Construction, and Public Release
Shared title terminology · Eduardo Ariño de la Rubia, Szilard Pafka
Reliable Mining of Heterogeneous AI Coding-Agent Data: Context-Aware Prediction and Resource-Aware Ranking
Shared title terminology · Haoran Yu, Lifei Liu, Danping Zhang