Figure out the path from question to answer

RAG is an approach in which the application finds suitable materials and passes them to the model along with the question. Preparing documents, searching and generating a response are separate stages, at each of which an error is possible. Therefore, it is useful to sequentially check the source document, the found fragments and the formulated answer. Replacing the model will not correct the situation if the canceled instruction is included in the search.

Start with a testable question

For diagnosis, select one work situation. Write down the expected answer and the document that supports it. Then see which pieces the application actually passed to the model. If the required condition is not found, first correct the loading, splitting, or searching. If a condition is passed, but the response ignores it, check the context formation and model statement.

DEMONSTRATION EXAMPLE

The training base contains the current regulations: for series A equipment the warranty is valid for 12 months, but does not apply to consumables. The archive contains a version with a period of 24 months. The assistant is asked about the warranty for the consumables included in the kit. The review should detect the exception and use the valid version, even if the archived document repeats the word “warranty” more often.

Collect a set of challenging questions

Our recommendation for the first review is to collect a small set of questions from real work, anonymize it, and agree on answers with the document owners. For example, start with 30 questions: this is a convenient organizational volume, not a universal standard for sufficient testing. For each error, save the question, user role, source version, found fragments, and answer. Leave some of the examples for testing after setup.

  • Direct question with answer in one valid document.
  • A question with a condition or exception from another section.
  • Colloquial wording, abbreviation or article.
  • Contradiction between new and archival instructions.
  • A request for which the database does not have sufficient information.
  • An attempt was made to retrieve a document that is not available to the current user.

Rate search and response separately

One general rating of “90% quality” hides the causes of errors. For acceptance, we offer a table of observed checks. Agree on the threshold for each of them with the process owner: a certificate of work schedule and a response to delivery conditions have a different cost of error. Don't lump access violation and poor wording into one GPA.

Corporate Assistant Verification Template
What we checkHow to checkSign of a problem
SearchIs the required fragment among those passed to the model?Found a similar topic without the required condition
EvidenceDoes the source support every material statement?The link opens but does not contain the promised fact
CompletenessAre limitations and exceptions still in place?A term has been named without conditions for its application
No responseWhat happens when there is insufficient dataThe system comes up with a rule
AccessRepeat the question on behalf of different rolesThe response included information from a closed section

Check for updates as product changes

Updates to regulations, search index, or model may change the answers. Maintain the database version and repeat the agreed set of questions after such changes. Start the analysis with a specific unsuccessful example: what source was used, what condition was lost, who is responsible for correcting it. For working conditions and promises to the client, provide for transfer to a specialist if there is no confirmation in available documents.

Apply to your task

Select one section of documents and team FAQs. Let's discuss the sources, relevance and access rights for the first scenario.

Discuss Knowledge Assistant →
← Return to materials