---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Glossary](/glossary)
3.  Retriever

[Back to Glossary](/glossary)

# What is Retriever

## Retriever - A saved, versioned search pipeline: the ordered stages that turn a query into ranked results

A retriever is a query pipeline you declare once and execute many times. It chains stages, typically a filter, a vector search, sometimes a keyword search, a fusion step and a reranker, each handing a candidate set to the next. Saving it as an object rather than assembling it per call is what makes retrieval reproducible: the same named retriever returns comparably ranked results tomorrow, and a change to it is a versioned change rather than a quiet edit in application code.

### How It Works

You declare the stages and their parameters, including how many candidates each stage passes on. At execution you supply the inputs the retriever declares, usually a query string and any filter values, and it runs the stages in order. The candidate budget between stages is the main cost lever, because a cross-encoder reranker runs a model forward pass per candidate, so the number handed to it is close to the whole cost curve of the pipeline.

### Technical Details

A retriever that reports what it did with your request is worth more than one that merely returns rows: which inputs it recognised, which it ignored, and which filter conditions it relaxed because the input they referenced was missing. A relaxed filter means the result set is broader than the one you wrote, and that is the case which is otherwise invisible. Retrievers are also the natural place for evaluation, since a saved pipeline can be replayed against a labelled query set to produce recall and NDCG that are comparable across runs.

### Common Pitfalls

*   Setting the reranker's candidate budget once by guess and never measuring where the recall curve flattens
*   Post-filtering a selective predicate and getting far fewer results than requested, instead of pushing the filter down
*   Assuming a filter applied, when the field it references was never provided and the condition was dropped
*   Comparing scores across stages or corpora that were never normalised to each other
*   Editing pipeline behaviour in application code rather than in the retriever, so the change is invisible to anyone reading the saved definition

### Relevance to Multimodal Systems

Multimodal retrieval needs the pipeline to be explicit because the stages have wildly different unit costs and the row counts are large: one hour of segmented video can produce a couple of thousand documents, so ten thousand hours is twenty million rows before any frame-level features exist. At that scale stage order and candidate budgets decide whether a query is a product or a timeout. See [retriever templates](/capabilities/retriever-templates), [the retrievers documentation](https://docs.mixpeek.com/retrieval/retrievers), and [multi-stage retrieval](/guides/multi-stage-retrieval-retrieve-filter-rerank).

[One-click templatesStart from a templateEach template deploys a working search app on your own files.Browse templates](/templates)

[Put it to work: search your own files](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=glossary_onramp&utm_campaign=mvs_onramp)

### Related Terms

[ACID](/glossary/acid)[API](/glossary/api)[Blob Storage](/glossary/blob-storage)[CLIP](/glossary/clip)[Embedding](/glossary/embedding)