Technical RAG: how to make AI answer with reliable sources

Close-up of branching white filaments among wet leaves and twigs on the forest floor, next to a small tuft of green moss.
Provenance: see image provenance
ProvenanceAI-generated conceptual imageHow we make images

Short answer: a RAG (retrieval-augmented generation) system retrieves passages from authorized documents before an artificial intelligence (AI) model generates the answer. This helps point to where the information came from, but it does not guarantee truth on its own. You need to control versions, permissions, search quality, and approval when the answer influences technical decisions.

What is RAG, in practical terms?

RAG, in practical terms, is a system that searches a defined collection of documents and passes the relevant passages to the model before it answers, instead of expecting it to “remember” a manual. The answer can point to the document, section, and date, and the concept was described in original research by Lewis and colleagues.

Industrial implementation adds a decisive question: which documents does the person asking have permission to consult?

Which mistakes most undermine a technical RAG system?

The mistakes that most undermine a technical RAG system are a search that returns an old revision of a specification, the mixing of different units, and the correct passage retrieved out of context. A model can also cite the right source and still misinterpret it.

For this reason, the assistant should show the supporting passage, indicate when it found no evidence, and route ambiguous questions to the person responsible. On critical topics, a deterministic rule or a query to the system of record may be more appropriate than a generated answer.

How do you organize a technical document base for RAG?

A technical document base for RAG is organized by document type and owner: procedures, equipment data sheets, internal standards, reports, and projects. Each document carries metadata on version, effective period, site, language, confidentiality, and the person responsible, plus a date by which it must be updated, or withdrawn once it is superseded.

Test the questions that engineers actually ask, including cases with no answer. Measure whether the correct passage was retrieved before evaluating the final text.

At Luxan, the Sinapse practice treats RAG as part of a custom operations module that brings together search, interface, and review in an environment defined with the client. When the assistant takes part in several stages, supervised agentic workflows add tasks and checks, always with access limits.

How do you test a RAG assistant before release?

A RAG assistant is tested with three sets of questions: with a known answer, with no answer, and with contradictory or superseded documents. For each question, first check whether the search found the right source, and then whether the answer preserved numbers, units, caveats, and version.

Record what the system did when it found no evidence. Include users with different permissions to test isolation. Repeat the test after each relevant update to the document base, the index, or the model. This process is more informative than only judging whether the text “sounds right.”

When is RAG the wrong tool?

RAG is the wrong tool when the answer must be an exact calculation, a structured query to a database, or an action in a transactional system. In these cases, a deterministic rule or a direct query to the source of truth is better; RAG can explain the context and point to the procedure.

The operation should use its own validations. Another risky situation is a disorganized collection: when there are five versions with no clear effective date, the search cannot tell which one represents the current rule.

Before deploying the assistant, define what it will do when it does not find sufficient evidence. A useful answer may be “not found in the authorized base,” together with the query made and the escalation path. This requires an interface that does not hide uncertainty. For auditing, keep the collection version, the retrieved documents, and the approved answer when the client’s policy allows. The goal is to make checking easier, not to give generated text an appearance of certainty.

What should you ask the vendor of a RAG solution?

Ask the vendor of a RAG solution for a demonstration with documents in different versions and a question whose answer does not exist. Observe whether the system exposes the retrieved passage, its date and effective period, whether it respects permissions, and whether it refuses to conclude without sufficient evidence in the authorized base.

Ask how updated sources will be reindexed, where logs are stored, and how to export the collection and records. A prototype with public PDFs proves little about the governance of industrial documents. The evaluation must reproduce, with authorized data, the ambiguities and exceptions of the operation where the assistant will be deployed.

Related reading: how to implement artificial intelligence (AI) in engineering and agentic workflows with human review.

Frequently asked questions

Does RAG eliminate hallucinations?

No. It reduces reliance on the model’s memory and enables checking, but retrieval and interpretation errors remain possible. The NIST generative AI profile (NIST AI 600-1), from the US National Institute of Standards and Technology, addresses this risk in section 2.2 as confabulation: wrong or false content presented with confidence, popularly known as hallucination.

Can I put all the PDFs in a single base?

Technically, you can put all the PDFs in a single base, but operationally it is usually a bad idea. Different permissions, versions, and confidentiality levels call for separate collections and policies; without that separation, the assistant may retrieve a document the person should not see or a revision that has already been superseded.

Is citing a document enough to release an answer?

Not when there is technical, legal, or financial impact. The citation shows where the passage came from, not that it supports the conclusion. The person responsible should check whether the cited passage is current, whether it was read in the right context, and whether it actually supports the answer before releasing it.

Next step: discuss a technical knowledge module with Luxan, using examples of real documents and questions.

Sources: Lewis et al. — Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (arXiv:2005.11401); NIST AI 600-1 — generative AI profile (PDF).

Sinapse in practice

How does Sinapse bring this guide into the daily routine?

Sinapse · operations with supervised AI

Automation with AI agents, always supervised

Automate steps without taking decisions away from people: a cycle that improves with every loop.

StartOperations bottleneck

  1. 01

    Select the routine and define rules

    Deliverable: Map of tasks and workflow design

  2. 02

    Build and test

    Deliverable: Workflow tested with fictitious data

  3. 03 · approval

    Operate with review

    Deliverable: Record of where each piece of information came from

  4. 04 · approval

    Review and hand over

    Deliverable: Review report and user manual

ResultWorkflow handed over to the team

mandatory approval: it moves forward only with your “OK”.Service: Supervised agentic workflows
From guide to implementation

How can you apply this guide in your company?

A critical routine lives in spreadsheets and depends on a few people who know where each piece of data or answer is. If this happens in your company, the diagnostic call defines the first measurable step to clear this bottleneck.

Book a diagnostic call

Explore Custom operations module

Keep reading

Other Sinapse guides

Interface with operations metrics and comparison bars.
Interface · fictitious data: see image provenance
ProvenanceScreenshot of Luxan's own interface · fictitious data (design assumptions)How we make images

Custom operations platform or SaaS: how should you decide?

Custom operations platform or SaaS: compare processes, data, integration, and governance before choosing between off-the-shelf software and your own system.