C. Desivo
Case

LLM features that can't make things up

§← All cases

DirectRetrieval and Official Reply: AI answers that can't be made up

A business approves its answers once: opening hours, delivery area, prices. Customers ask in their own words, typos and slang included, and the assistant replies with the approved answer that fits, word for word, with live values like prices and stock read from the business's own systems.

The language model never writes the reply. A JSON schema limits its output to one of the approved answers, plus a yes or no on whether it really answers the question. If none does, the customer is told so and offered a person, instead of a guess. That also limits what a prompt injection can do: the worst case is picking the wrong approved answer, never saying something new.

DirectRetrieval is the open-source library that does the picking. Official Reply is the product I built on it for businesses: a dashboard where owners approve answers and see what customers couldn't get answered, live values from their databases, Google Sheets and Shopify, requests customers confirm on a card (bookings, holds, orders), and the same answers on the website and in WhatsApp. It runs the live demo on this site, with my own answers. More at officialreply.com.


Other LLM work

Beyond DirectRetrieval, I've built LLM features for other applications: a generator that proposes polls from a subject and a target audience, returning structured data ready to publish; customer-support chatbots that answer from a company's own documents with retrieval-augmented generation (RAG); and LLM-as-judge setups, where carefully written prompts make a model grade other outputs consistently.

Related: AI drafts with the wrong numbers? Fill documents from your own data · Stop your chatbot from making things up