DataWeave: Deploying Human-LLM Analytics for Exploratory Structured Data Analysis

Raquib Bin Yousuf, Harith Laxman, Vitaliy Shkremetko, Eunice Son, Shambhavi Verma, Brian O'Leary, Venketesh Subramony, Sylvain Nazef, Jacquelyn Elias, Ron Coddington, Chris Contakes, Michael Riley, Naren RamakrishnanarXiv 2026

TL;DR

DataWeave is a human-in-the-loop analytics system that leverages Large Language Models (LLMs) to help domain experts, like journalists, explore complex and evolving structured datasets. By prioritizing transparency and interactivity over full autonomy, the system allows users to inspect, correct, and steer the analytical process, resulting in significantly higher accuracy and trust compared to "black-box" autonomous agents.

What Problem Does This Paper Address?

In fields like data journalism, uncovering stories requires navigating massive, heterogeneous datasets. For example, the U.S. Department of Education’s IPEDS dataset contains hundreds of variables across decades of records. Traditional exploration is slow and brittle: journalists must understand cryptic coding conventions, handle "schema drift" (where table structures change over time), and write complex SQL or Python code.

While LLMs are often marketed as a "Text-to-SQL" silver bullet, they frequently fail in real-world newsroom workflows. They make silent assumptions, misinterpret domain-specific units, or hallucinate columns that don't exist. Furthermore, fully autonomous agents often hide their intermediate reasoning, making it impossible for a professional analyst to verify the results—a dealbreaker in high-stakes investigative reporting.

Methods

The authors propose an agent-mediated architecture designed for collaborative sensemaking rather than one-shot answering. The DataWeave workflow consists of several key stages:

  1. Intent Interpretation & Clarification: Instead of guessing the user's intent, the system identifies ambiguities (e.g., a missing time frame or an unclear acronym) and asks for clarification before touching any data.
  2. Objective-Conditioned Schema Grounding: Rather than stuffing a massive, noisy database schema into the LLM's prompt, the system dynamically retrieves only the relevant table and variable metadata based on the clarified objective.
  3. Analytical Planning: The LLM generates a high-level plan—specifying filters, temporal scopes, and operations—before writing any code.
  4. Query Formulation & Bounded Execution: The system generates read-only SQL. If the query fails, a "Repair Engine" uses the error feedback to attempt a fix, but this recovery is strictly bounded to prevent infinite loops or nonsensical drifts.
  5. Analytical Traces: Every assumption, generated query, and intermediate result is preserved as a persistent trace. This allows the human user to inspect the "plumbing" of the analysis and verify its correctness.
Figure 2: DataWeave architecture. User objectives are interpreted and clarified, grounded through objective-conditioned schema retrieval, translated into analytical plans and read-only SQL, and executed with bounded recovery. Queries, results, and errors are preserved as analytical traces to support transparency and reproducibility.

Datasets

The system was primarily evaluated using the Integrated Postsecondary Education Data System (IPEDS), a high-stakes public dataset covering enrollment, finances, and demographics for U.S. colleges.

For quantitative evaluation, the authors created a benchmark of 400 questions derived from the official IPEDS Trend Generator, spanning 20 collection years (2004–2024). This benchmark tests the system's ability to handle complex longitudinal queries and domain-specific categorical breakdowns.

Key Insights and Ideas

  • Human Guidance is a Strength: The authors argue that for structured data, human intervention isn't a failure of the AI, but a necessary component for accuracy. Small, well-timed clarifications prevent massive downstream errors.
  • "Permission Over Forgiveness": A core design principle where the system is instructed to ask for permission (clarification) rather than making unsupported assumptions that might lead to "silent" failures.
  • Inspectability Breeds Trust: Professional journalists were more likely to trust the system when they could see the generated SQL and the specific metadata used, treating the LLM as a "collaborative partner" rather than an autonomous oracle.
  • Iterative Refinement: Real-world analysis is rarely a single question. Deployment logs showed that users often start broad and narrow their focus as they learn from intermediate results.
Figure 6: Analysis of session logs shows that column usage often increases in later steps, reflecting deeper investigation as users refine their questions.

Key Results

  • Accuracy: In the 400-question benchmark, the agentic configurations of DataWeave achieved 70–73% accuracy (within a 1% error tolerance). In contrast, a simpler baseline configuration achieved only 7% accuracy, highlighting the necessity of schema grounding and iterative planning.
  • Operational Efficiency: Using a Retrieval-Augmented Generation (RAG) approach for schema grounding reduced the operational cost per question by nearly 90% ($0.0065 vs $0.06) compared to more exhaustive exploration methods, without sacrificing accuracy.
  • Real-World Utility: In a retrospective case study, DataWeave successfully reconstructed the analytical workflow and reproduced the statistics used in a previously published investigative article by The Chronicle of Higher Education.

Limitations and Future Work

  • Reasoning Complexity: Shifting to an agent-mediated model increases flexibility but makes the model's reasoning path less predictable, which can sometimes lead to broader (and more expensive) schema exploration.
  • Workflow Integration: The authors noted that while the system is analytically capable, integrating it seamlessly into existing newsroom CMS or data pipelines remains a separate engineering challenge.
  • Future Directions: The team plans to extend DataWeave to other complex domains (like public health or finance) and explore more advanced forms of "guided autonomy" where the agent can suggest potential story angles based on detected outliers.

Summary updated

BibTeX
@misc{yousuf2026dataweave,
  author = {Raquib Bin Yousuf and Harith Laxman and Vitaliy Shkremetko and Eunice Son and Shambhavi Verma and Brian O'Leary and Venketesh Subramony and Sylvain Nazef and Jacquelyn Elias and Ron Coddington and Chris Contakes and Michael Riley and Naren Ramakrishnan},
  title = {{DataWeave: Deploying Human-LLM Analytics for Exploratory Structured Data Analysis}},
  year = {2026},
  eprint = {2610.02679},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.02679},
}
Figure