Kiseki Labs Request a briefing
Natural-language analytics

Natural-language analytics: from under 60% to 98% query success in four weeks.

← All case studies

A platform that let users ask questions of their spreadsheet data in plain English. After months of development it was still returning malformed output, schema validation errors and runtime exceptions on roughly 40% of queries, at an unpredictable 20,000–50,000 tokens a time.

Engagement
Duration
4 weeks
Scope
Diagnose, rebuild, hand over
Team
Me, plus their engineers
Domain
Analytics over spreadsheet data
Query success rate
Before <60%
After 98%

Measured against a fixed 35-case evaluation suite. Zero syntax errors reached execution.

Week 01

Foundations before architecture: dependency management, linting, CI via GitHub Actions, documentation. Nothing clever.

Week 02

Built the evaluation suite — 35 cases, six business domains — then used it to settle the core architectural question on evidence: custom DSL, or direct Python generation.

Week 03

Production pipeline: four specialised agents — planner, code generator, verifier, summariser — with self-healing retry logic.

Week 04

Integration, documentation, and knowledge transfer to the engineers who would own it afterwards.

The 35 cases spanned six domains
  • Building management
  • Supply chain
  • EV sales
  • Emissions
  • Formula 1
  • Social media
79tests handed over
4agents in pipeline
60s → 25stypical response
0syntax errors at execution

Why this should matter to you. The client was small. The problem isn't. Every organisation past a certain size has operational data sitting in spreadsheets that nobody can query without opening a dozen files by hand: finance reporting, supply chain, claims, procurement. The engineering that makes an answer trustworthy is identical at four hundred people as at forty. So is the discipline of proving it.

Read the full write-up

Mapped to the Go-Live Gate. Week one covered automated evaluation in CI (item 2.4). Week two built the fixed test set and agreed the threshold (gates 2.1 and 2.2). Week three designed failure behaviour and verification (gate 4.1, item 4.2) and right-sized the models (5.3). Week four was handover (7.2, 7.3, 7.5). Not every box was ticked: the handover listed nine areas for future work, with code-execution sandboxing (3.4) flagged as security-critical. That is a condition with an owner and a date, which is worth more than a box ticked generously.

Get the Go-Live Gate checklist

Next

Have a pilot that half-works?

The Go-Live Gate Review is the same discipline in one week: a measured baseline on your own cases, twelve gates, and a written verdict on whether it can ship.