Language model features that survive real users
A demo takes a week. A feature that stays accurate, affordable and polite in Hindi, Tamil and Hinglish takes a different kind of work. What we build around the model.
Almost every client conversation about AI now starts with a demo someone has already built. It answers questions about the product, summarises documents or drafts replies to customers, and it looks good. Then it meets real users, who type in Hinglish, paste screenshots, ask about things that are not in the documents and occasionally try to make it say something embarrassing.
The model is rarely the hard part. The work is everything around it: knowing whether it is right, stopping it when it is wrong, and keeping the cost of each answer below what the answer is worth.
Write the test set before the prompt
We do not start with prompt writing. We start by collecting 150 to 300 real questions, with the answer a careful person would give and the answers that would be unacceptable. For a lending app that meant questions about EMIs, foreclosure charges and missed payments, pulled from six months of support tickets.
That set becomes the eval harness. Every change to the prompt, the retrieval, the model or its settings runs against it, and we track three scores: correct, acceptable but weak, and wrong or unsafe. A change ships only if the third number does not go up.
- Include questions the feature should refuse, and score a refusal as correct.
- Include the messy inputs: typos, voice to text output, mixed scripts.
- Grade with a written rubric. Model graded evals are useful for speed, but sample them by hand every week.
- Re-run the full set whenever the provider updates a model version.
Guardrails are product decisions
Guardrails get described as a safety layer, as if they were a plugin. In practice each one is a product decision someone has to own. What should happen when a user asks Juniper Wealth's assistant which fund to buy? The assistant explains the options and hands over to a licensed advisor, because giving that advice is regulated. That rule lives in code, it is tested in the eval set, and the handover is a designed screen with a clear next step.
We put guardrails in three places: on the input, to catch personal data and off-topic requests; in retrieval, so the model only sees documents the user is allowed to see; and on the output, to check claims against the sources and block anything that fails.
Know your cost per answer
A feature that costs ₹4 an answer can be fine for a wealth app and ruinous for a free consumer product. We measure cost per resolved question from the first week, including retries, retrieval and the occasional very long conversation.
The biggest savings usually come from routing. Simple, high-volume questions go to a small fast model or a cached answer, and only the hard ones reach the larger model. On one support assistant this took the average cost per conversation from ₹3.10 to ₹0.70 with no drop in eval scores. Caching common answers and trimming retrieved context did most of the rest.
Test every Indic language on its own
Most of the users we build for do not write in clean English. They write Hindi in the Latin alphabet, switch languages mid-sentence or send voice notes. Current models handle this far better than they did two years ago, but quality still varies a lot by language and by task.
So we test each language as its own product. The eval set gets separate sections for Hindi, Hinglish, Tamil and whatever else the user base needs, and we report scores per language. Where a language scores poorly, we would rather answer in simple English with a clear note than give a confident wrong answer in the user's language. For speech and translation we have had good results pairing a general model with India-specific services such as Bhashini.
The day we started reporting scores per language, the team stopped arguing about whether the assistant was good. It was good in English and Hindi, and not yet good in Marathi.
Ship small, then watch
Our first release of a language model feature usually goes to 5% of users, with every conversation logged and a sample reviewed by a person each day for the first two weeks. We look for questions the eval set missed and add them. Then the rollout widens. It is slower than launching to everyone after a good demo. It is also why the feature is still running a year later.