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
- 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.
- 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.
- Dashboard. Code draws one chart for every questionnaire question, in order. The model does not choose which charts exist.
- 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.
- 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.
Step 1 of 5: Load. 4 delivery files read.
Data / Add files
Read the delivery as it arrives
coffee-2026-data.xlsxRespondent data400 rows · 41 columnscoffee-2026-datamap.xlsxData map3 tabs · codes and labelscoffee-2026-datamap.xlsx › HolecountHole countsSupplier frequenciesquestionnaire-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.
Data / Review
Check against the supplier
212 of 212 supplier frequencies match the loaded data.
10 of 10 age × district cells achieved.
| Row | Column | Value | Status |
|---|---|---|---|
| R0187 | Q1 cups / week | 45 | check above questionnaire range 0-30 |
| R0263 | Q3 spend / cup | 4,800 | check far from others |
| R0311 | Q6 rating | 7 | null outside 1-5 scale |
- System prepared
- Every row validated by code; every problem listed.
- Human decision
- Decide whether outliers are real answers.
- Record retained
- The issues list stays with the workspace.
Dashboard
One chart per question
- System prepared
- Charts made by code from the data; the AI does not pick which.
- Human decision
- Pin, hide or restyle what the client sees first.
- Record retained
- Chart style and pins saved in the workspace.
Ask / Chat 1
Plain English in, checkable answer out
Does spend per cup differ by age group?
Average spend per cup is highest among 35-44s (HK$49) and lowest among 55+ (HK$36). Base: respondents who buy coffee out (352).
SELECT age_grp, ROUND(AVG(q3_spend)) AS avg_hkd, COUNT(*) AS base
FROM respondents WHERE q3_spend IS NOT NULL
GROUP BY age_grp ORDER BY age_grp;- System prepared
- Read-only SQL, run in the browser, drawn as a chart.
- Human decision
- Check the base and the numbers before sharing.
- What the model sees
- The question, survey description and query results, not respondent rows.
Report
Pinned charts become a draft report
- ☑Key findings
- ☑C2 Where people drink coffee
- ☑C19 Spend per cup by age
- ☐C7 Brand bought most often
Page 1 · Key findings
Hong Kong Specialty Coffee Habits 2026
- A third drink coffee most often at a chain coffee shop.
- Spend per cup peaks among 35-44s.
Text is typed by the analyst; the tool does not write recommendations.
- System prepared
- Cover, contents and charts with legends, as PDF or .docx.
- Human decision
- Choose, order and write up the findings.
- Handover
- One workspace file the client opens in their browser.
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.