← All papers
QAME-2026-001 December 2026

Chat-First Data Analytics

Ulrich Matter

Abstract

Using natural language to drive data analysis is an old idea, but large language models (LLMs) have made it suddenly ubiquitous. A widely observed and concerning workflow has users upload a dataset to ChatGPT and ask for an analysis; the model generates and executes code on a remote virtual machine, producing results that are difficult to verify, difficult to reproduce, and incompatible with data-privacy requirements. This paper presents a different approach: chat-first data analytics. It rests on three principles: First, interpretation and computation are separate. Second, methods are pre-validated, not generated. Third, only metadata and aggregates are transmitted, never the dataset itself. The LLM interprets the user's intent and selects tools; pre-implemented, validated methods compute the results. prompt2analytics implements this approach as an econometrics and data analytics library in pure Rust, exposed through the Model Context Protocol (MCP) for integration with LLMs. The library exposes 143 statistical and econometric methods through the chat interface (such as regression, panel data, and time series), of which the core estimators and tests are validated against established R packages (475 entries pinned to R reference cases). We run end-to-end evaluation of the deployed system through its web interface. It completes 97.9% of scored steps with perfect context retention across conversations. An additional single-turn benchmark over six models and 96 prompts shows that tool selection, parameter extraction, and numerical correctness can be achieved even by small models. A 3B-parameter model scores 80%, ten points below the best cloud model and within five points of the next two. Fully private usage of prompt2analytics on modern consumer hardware is thus possible and practical.

Keywords

chat-first analytics · natural language interface · econometrics · Rust · Model Context Protocol · local LLM · data privacy

Companion software: prompt2analytics — pure-Rust econometrics library exposed over MCP.