
Language models write fluent answers. They write them just as fluently when they are wrong. In casual use that is an annoyance. In mining regulation, school finance or a legal contract, it is a reason to leave the tool switched off.
MINFRA includes an assistant that answers questions about mining regulations. Its answers are drafted from the official documents and cite the passages they came from. The approach is simple to describe, and it is the one we use whenever an assistant has to be trusted at work.
Give the model the documents, then ask the question
A general model answers from whatever it absorbed in training, which may be out of date or about another country. So we change the task. The system first finds the passages in your own documents that relate to the question, then asks the model to answer using only those passages.
The four steps
- Parse: the official documents are read into clean text, including scanned pages.
- Split and index: the text is divided into passages and stored so that passages with a similar meaning can be found quickly.
- Retrieve: for each question, the system pulls the handful of passages that match best.
- Answer with citations: the model drafts a reply from those passages and names the ones it used.
Rules that keep it honest
- Every claim in an answer links to a passage the reader can open.
- If nothing relevant is found, the assistant says so and stops.
- The source documents are official texts, loaded and versioned by people.
- Questions and answers are logged, so weak answers can be reviewed and the documents improved.
Where this fits in a business
The same pattern suits policy manuals, product catalogues, contracts, standard operating procedures and past project files. It works best where the answer already exists in writing and the cost is in finding it.
It is a poor fit where the answer needs judgement no document holds, or where the documents themselves are out of date. An assistant built on stale documents gives stale answers, with citations.
A good first test
Collect twenty real questions your team asked last month, along with the correct answers. Any assistant you are shown should get most of them right and point to the right page for each. If a vendor cannot run that test for you, keep looking.