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

