Stage Category: REDUCE (Groups results by time)Transformation: N documents → M time-window results (with optional drift detection)
When to Use
When NOT to Use
Parameters
Aggregation Types
Drift Detection
Drift detection compares a metric between consecutive windows and computes the percent change.Timestamp Formats
The stage parses timestamps automatically:
Documents with missing or unparseable timestamps are skipped (counted in
num_documents_skipped).
Configuration Examples
Output Schema
Window Results
Window Key Formats
Performance
Common Pipeline Patterns
Search + Temporal Analysis
Brand Monitoring with Spike Detection
Error Handling
Call temporal from the API
Add the stage to a retriever’sstages array as {"stage_name": "<your label>", "stage_type": "reduce", "config": {"stage_id": "temporal", "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.

