Case study · 2026

Dataweaver

An AI desktop app for spreadsheets, documents and databases, driven by plain-language requests.

Dataweaver is Techcora's AI desktop app for working with spreadsheets, documents and databases through plain-language requests. I lead its development at Techcora, across the desktop app (a React UI on a Rust core, with Tauri), the website and dashboard (Angular) and the FastAPI LLM gateway with usage limits and billing. It has been in production since January 2026, and I work directly with its pilot users and an enterprise payments design partner.

Role
AI Engineer
Stack
Python · Rust · React · Tauri · FastAPI · Angular
Built at
Techcora
Status
Live
Dataweaver desktop app: the agent works out which invoices are still unpaid next to the spreadsheet it read, with sample data

In one line In each agent turn, detected personal data is masked on the device before the request reaches a cloud model, and quoted values cite their page and line.

Constraints

  • Back-office data is full of personal and financial identifiers, like Aadhaar and PAN
  • Answers feed finance and operations work, so every quoted value has to point back to its source
  • Connectors to customer databases must never write
  • Code the agent writes runs on the user's machine, so it needs a fence

The build

Back-office teams want to ask questions of their own spreadsheets, documents and databases in plain language, and that data is full of identifiers that should not reach a model provider in the clear. Dataweaver is a desktop app for Mac and Windows, with a website, a web dashboard and a FastAPI LLM gateway that also runs usage limits and billing. I lead its development; colleagues handle release, build and signing. Every release since January 2026 is on the public changelog.

I work directly with prospective customers and pilot users, including an enterprise payments design partner: outreach, onboarding and feedback calls. Their input decides what we build and simplify next. PDF support (September 2026) and Word support (October 2026) shipped because users asked for them, and the same calls simplified the interface.

The AI workflows are tool-calling, with progress streamed so the user can follow each step. Python that the agent writes runs with restricted execution, scoped file access and network limits. In each agent turn, detected personal data, such as Aadhaar and PAN numbers, is masked on the device before the request reaches a cloud model and restored as the answer streams back. The agent loop and its tools run in the Rust core: engines on Polars and Arrow profile and process files, document extraction cites the page and line of each quoted value, and database connectors are read-only.

On a 240-PDF benchmark I cut peak memory by 90%, and p99 foreground read latency during background indexing fell from 3.14 s to 1.32 s, using chunked reads and separate worker queues. A second OCR reading pass with fine-tuned readers lifted word recall from 75.7% to 94.0% on a 1,000-page English, Hindi and Telugu benchmark, and it shipped in v0.16 (October 2026). The same release added number checking, which checks each figure in an answer against the user's files, and bank statements to Excel, with every row checked against the statement's balances.

The FastAPI LLM gateway, on PostgreSQL, routes each model call across providers with ordered fallbacks and a circuit breaker per provider, streams the answer back, logs token, cost and response time for every call, and enforces usage limits and billing. The evaluation harness runs versioned scenarios as isolated, repeated trials, asserts on tool use and final answers, and records the model and code versions so results compare across changes.

Decisions, including the rejected ones

Where privacy lives

Chose: Mask detected personal data on the device in each agent turn, and restore it in the streamed response

Rejected: Redaction checks spread across the app

Every extra checkpoint is another place to get it wrong. One masking step in each agent turn is one place to test, and the user still reads real names and numbers in the answer.

Running agent code

Chose: Restricted Python execution with scoped file access and network limits

Rejected: Running generated code with the app's own permissions

An agent that writes code will one day write the wrong code. Restrictions limit what that code can read, write and reach, so a bad step stays a bad answer instead of a damaged machine.

Memory and latency under load

Chose: Chunked reads and separate worker queues for background indexing

Rejected: Reading whole files on one shared queue

A user reading a file should not wait behind a batch job. Separate queues keep foreground reads responsive while indexing runs, and chunked reads keep memory flat as the file count grows.

Proving a change helped

Chose: An evaluation harness: versioned scenarios, isolated repeated trials, model and code versions recorded

Rejected: Spot-checking a few answers by hand

One good run proves little with a model in the loop. Repeated isolated trials, tied to the exact model and code version, make a result comparable and a regression visible.

Database access

Chose: An AST allowlist on every query, inside a read-only session

Rejected: A blocklist of write statements

A blocklist has to anticipate every way to write. An allowlist admits only what parses as a read, and the read-only session still holds if the parser is ever wrong.

What it took

  • Tool-calling AI workflows
  • Restricted Python execution
  • Local PII masking
  • Rust engines (Polars, Arrow)
  • Page-and-line citations
  • Provider fallback + circuit breakers
  • Chunked reads + worker queues
  • Evaluation harness