Retrieval-augmented generation (RAG)

Retrieval-augmented generation, or RAG, is a method where the system first looks up relevant documents and gives them to the model, so its answer draws on that material.

Why it matters for a startup

A model on its own knows only what it was trained on. RAG lets it answer from your documents, help pages or data, which makes answers more relevant to your product.

It does not make answers always correct. The lookup can return the wrong passage or nothing at all, so the interface needs to show sources and handle those cases.

How we handle it

We design the answer so the user can see where it came from: linked sources, a short quote and a clear note when nothing relevant was found.

We also design the fallback, such as a prompt to rephrase or contact a person. It is part of our AI product design work.

Example

A help assistant is asked about refund rules. The system finds the refund page, gives it to the model and shows the answer with a link to that page. If no page matches, it says so.

Common mistakes

  • Showing an answer with no source the user can check.
  • Having no message for the case where the lookup finds nothing.
  • Assuming retrieved text is always current and correct.
  • Letting the model answer from memory when retrieval fails, without saying so.

Related terms

Related services

Questions founders ask

Want this designed for your product?

Book a 30-minute call. You leave with a clear plan and a fixed price, and no obligation.

  • Monthly retainer, pause or cancel any time