LIMIT/OFFSET clause.
Stage Category: REDUCE (Truncates documents)Transformation: N documents → min(N, limit) documents
When to Use
When NOT to Use
Parameters
Configuration Examples
Performance
Common Pipeline Patterns
Rerank Then Limit
Cost-Controlled LLM Pipeline
Error Handling
Call limit from the API
Add the stage to a retriever’sstages array as {"stage_name": "<your label>", "stage_type": "reduce", "config": {"stage_id": "limit", "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.
Related
- Sample - Random or stratified sampling
- Deduplicate - Remove duplicates before limiting
- Rerank - Re-score before limiting to ensure best results

