Skip to main content
Retriever stages are the building blocks of search pipelines in Mixpeek. Each stage performs a specific operation on the document set, allowing you to compose complex retrieval workflows from simple, reusable components. Where a traditional database returns rows, the warehouse query layer returns ranked, enriched, and fused multimodal results assembled stage by stage.

Stage Categories

Stages are organized into six categories based on how they transform the document set:

FILTER

Reduce the document set by matching criteria. Outputs a subset of input documents.Stages: feature_search, attribute_filter, llm_filter, agent_search, query_expand

SORT

Reorder documents by relevance or field values. Same documents, different order.Stages: sort_relevance, sort_attribute, mmr, rerank, score_normalize

REDUCE

Collapse results into aggregated values. Produces a single value or smaller set from the input.Stages: aggregate, temporal, sample, summarize, limit, deduplicate, moment_group, score_threshold

GROUP

Reshape results by bucketing documents into logical groups or clusters.Stages: group_by, cluster

APPLY

Transform or restructure documents. May reshape fields, create new documents, or call external services.Stages: json_transform, rag_prepare, external_web_search, api_call, sql_lookup, cross_compare, web_scrape, unwind, code_execution

ENRICH

Add knowledge to documents using AI models, taxonomies, or cross-collection joins.Stages: llm_enrich, taxonomy_enrich, document_enrich, agentic_enrich

All Stages

Filter Stages

Sort Stages

Reduce Stages

Group Stages

Apply Stages

Enrich Stages

Pipeline Patterns

Basic RAG Pipeline

Research Assistant

Enriched Document Retrieval

Stage Selection Guide

Performance Considerations

Order stages efficiently: cheap operations (filters, sorts) before expensive ones (rerank, LLM calls). This reduces the document count before costly processing.

Template Variables

All stages support template variables for dynamic configuration: