Original editorial illustration for this topic. Not an official product screenshot or a depiction of the exact reported event.
Retrieval-augmented generation (RAG) combines a generative model with an information retrieval step. Rather than relying solely on remembered training patterns, an application searches a designated collection and passes relevant excerpts to the model before it answers. This is useful for manuals, policies, internal knowledge bases and frequently changing product documentation.
What to evaluate before choosing a tool
A basic pipeline loads documents, splits them into useful chunks, indexes them, retrieves candidates for a question and builds a grounded answer from those candidates. Quality depends heavily on content preparation, query formulation and citation handling. Adding a vector database does not automatically solve missing or contradictory source material.
Step-by-step workflow
- Clean the source documents and preserve titles, dates and section identifiers.
- Chunk content along meaningful boundaries rather than cutting sentences arbitrarily.
- Test retrieval against real questions and inspect the passages returned.
- Require citations in the generated answer and verify each citation supports its claim.
- Measure unanswered questions and hallucination rate; refine retrieval before changing the model.
Practical example
Here is an original example you can adapt to your own project. Its wording is a starting point, not a guarantee of a particular result.
Common mistakes and limitations
RAG can still fail when the correct document is not indexed, the relevant passage is not retrieved or the answer blends contradictory versions. Access controls must apply during retrieval as well as when documents are stored.
When this approach makes sense
For editorial sites, RAG is a way to ask questions of approved primary documents. It is not a substitute for editorial review or source transparency.
Frequently asked questions
Does RAG retrain the model?
No. It usually supplies external text at inference time without changing the base model weights.
Is vector search the only retrieval method?
No. Keyword, semantic and hybrid search can all contribute.
Official sources and documentation
These primary references describe the products and concepts used in this guide. They are not evidence that Runway Presstoday independently tested every feature.