DISTINCT, MongoDB’s $group with $first, and Elasticsearch’s field collapsing.
Stage Category: REDUCE (Removes duplicates)Transformation: N documents → M documents (M ≤ N, duplicates removed)
When to Use
When NOT to Use
Parameters
Deduplication Strategies
Configuration Examples
Performance
Common Pipeline Patterns
Web Search Deduplication
Cross-Collection Dedup
Error Handling
Call deduplicate from the API
Add the stage to a retriever’sstages array as {"stage_name": "<your label>", "stage_type": "reduce", "config": {"stage_id": "deduplicate", "parameters": {...}}}. The parameters are the ones on this page.
- Create Retriever (
POST /v1/retrievers) saves a retriever that runs the stage. - Execute Ad-hoc Retriever (
POST /v1/retrievers/execute) runs stages without saving a retriever. - List Available Retriever Stages (
GET /v1/retrievers/stages) returns every stage’s parameter schema.

