An answer needs the right evidence. Follow a document from representation and search to the claims it can actually support. Retrieval and generation can each fail, so inspect both.
RAG
Retrieval-augmented generation: retrieving relevant information and supplying it to a model to help generate a response.
The relevant manual page earns a place beside the answer.The open manual is retrieved context supplied for the answer. Its relevance and the answer's use of it both need checking.
RAG adds retrieved material to the context used for generation. The application searches an external collection, selects results, and supplies them to the model. Retrieval might use keywords, vectors, or another method. The quality of the answer depends both on finding useful evidence and on using it accurately, so evaluate those steps separately.
Embeddings
Learned numerical representations of data that allow software to compare items by relevant features.
A passage becomes a point on the map.The map compresses a numerical vector into two dimensions. Nearby points mean similarity under the model and comparison method, rather than a universal map of meaning.
An embedding model turns data into a vector, a list of numbers encoding learned features. Software can compare these representations to find related text, images, or other items. The illustrated map compresses many dimensions into two. What proximity means depends on the embedding model and the similarity measure used.
Vector search
Retrieving items by comparing their vector representations with a query vector.
Start with the document markers closest to the query.The compass simplifies a similarity comparison between a query vector and stored document vectors.
Vector search compares a query representation with stored representations and retrieves nearby matches. Similarity measures such as cosine similarity define the comparison. Larger collections often use approximate search to keep retrieval fast. Judge the results against the actual query: a close vector is evidence of similarity, rather than proof that a document is relevant or true.
Combining different retrieval methods, commonly keyword search and vector search, into one search process.
One pile matches the words. Another finds related wording.The two trays represent separate retrieval signals. The application combines their candidates or scores before choosing what to use.
Exact identifiers and broader meaning can both matter in a search. Hybrid retrieval combines methods, commonly keyword and vector search, so each can contribute candidates. The system then merges their results or combines scores. How those signals are balanced influences which documents reach the model, making that combination worth evaluating on real queries.
Reordering an initial set of search results using an additional relevance assessment.
The shortlist gets a closer inspection.The closer inspection represents an additional relevance assessment applied after initial retrieval.
Retrieval produces candidates; reranking assesses their relevance again to improve the order. A reranker often reads the query alongside each candidate's content, spending more effort on a smaller set. This makes the initial shortlist important. A relevant document excluded at retrieval has no chance to move up during reranking.
A very convincing reference to a book the archive has never owned.The sheet is an invented citation. A plausible reference needs verification against the source it claims exists.
Fluent output can contain invented facts, nonexistent citations, or claims that contradict the source. This is the failure usually described as hallucination. Check factual claims against appropriate evidence, particularly when the output will drive another action. Supplying reference material helps only when the generated answer actually follows what that material supports.
Connecting a model's response to relevant source information or observations that support its claims.
This claim has a measurement behind it.The measurement supports the height claim. It supplies no evidence for the separate material claim.
Grounding connects an answer to information that supports it. That information might come from a document, a database, or an observation returned by a tool. Check the relationship between claim and evidence, including whether the source is reliable. A citation attached to an unrelated passage provides a link without providing support.