Everything *[NYC] 2026: see what we announced. →
Skip to content

Retrieval gating definition

Retrieval gating is the decision a retrieval-augmented generation pipeline makes before it generates: whether to retrieve at all, which source to retrieve from, and which retrieved passages are relevant enough to enter the model's context. Each gate has a fixed set of possible answers, so it can be judged, thresholded, and logged separately from the text the model eventually writes.


A diagram explaining Retrieval gating in terms of related concepts.

What are the three gates in retrieval gating?

See Jev turn text into structured content

Vellum is a Sanity experiment that uses Jev to turn loose text into structured content. Paste any text, pick a Sanity, Zod or JSON Schema, and Jev decides which part of the source fills each field. Anything below your confidence threshold stays empty for review.

Why gate retrieval instead of always retrieving?

How is retrieval gating different from reranking?

What is the "select, don't generate" pattern?

Why does structured content make retrieval gating easier?

Discover More with Sanity

Now that you've learned about retrieval gating, why not start exploring what Sanity has to offer? Dive into our platform and see how it can support your content needs.

Last updated: