Jack Ng

Project / client trial

MDRi Analytics

A browser-based survey analysis tool I built for MDRi, a market-research firm, so analysts and their clients can question survey data in plain English.

Survey files are loaded and validated in the browser; an AI model writes read-only SQL against them, and every answer comes back as a chart with its base.

The problem

A market-research project ends with a delivery from the fieldwork supplier: respondent data, a data map, a questionnaire, and often hole counts and quota sheets. Before anyone can answer a client’s question, an analyst has to check that those files agree with each other, then build tables by hand. Follow-up questions from the client start the cycle again.

MDRi wanted that work to be faster for its own team, and wanted clients to be able to ask their own questions of a finished project without receiving raw files or a statistics package.

My role

I designed and built the product end to end for MDRi: the in-browser data pipeline, the model integration, the chart and report output, the admin and trial controls, and the deployment. MDRi set the requirements, tested it on real projects, and gave the feedback that shaped later versions.

What it does

  1. Load. Analysts add the supplier’s files as delivered: Excel workbooks, CSV, Word questionnaires, including password-protected Office files. The tool proposes a role for each sheet and groups columns into questions.
  2. Check. Code validates every row, compares the result with the supplier’s hole counts and quotas, and lists anything that does not match or looks out of range. Nothing loads until a person approves the review screen.
  3. Dashboard. Code draws one chart for every questionnaire question, in order. The model does not choose which charts exist.
  4. Ask. A user types a question. The model writes read-only SQL, the browser runs it, and the answer arrives as a chart with the question wording and base under the title. The SQL and data table are there to check.
  5. Report. Pinned charts become a draft report that exports to PDF or Word. The analyst writes the findings.

Interactive mock-up

From supplier files to a checked chart

A simplified reconstruction of the product, filled with an invented Hong Kong coffee survey. No client data, no live model and no backend: these are static interface states. Choose a stage, or use Previous and Next.

MDRi Analytics

Demo survey · n=400

Step 1 of 5: Load. 4 delivery files read.

Data / Add files

Read the delivery as it arrives

4 delivery files read
  • coffee-2026-data.xlsxRespondent data400 rows · 41 columns
  • coffee-2026-datamap.xlsxData map3 tabs · codes and labels
  • coffee-2026-datamap.xlsx › HolecountHole countsSupplier frequencies
  • questionnaire-v1.3.docxQuestionnaire18 questions · 2 sections
System prepared
A proposed role for every sheet, header row and question grouping.
Human decision
Correct any role or header before anything loads.
Stays local
Files are read in the browser, not uploaded.

Design boundaries

The data stays in the browser. Survey files are parsed and stored locally in a SQLite database. The model receives the question, a description of the survey and the results of its own queries, not respondent-level rows. Clients who cannot send survey content to a cloud provider can run a local model through LM Studio or Ollama instead.

Code handles the numbers; the model handles the language. The model reads a sample of each sheet to say what it is, but code reads every value. Answers to clients describe counts, percentages and differences with their bases; they do not give recommendations.

One file per project. A whole project, including data, charts, chats and the report, saves as one workspace file that MDRi can send to a client.

Status

The tool is in a client trial with MDRi. The mock-up above uses an invented survey; no MDRi or client data appears on this page.