Stage Category: SORT (Reorders documents)Transformation: N documents → top_k documents (re-ranked by relevance)
When to Use
When NOT to Use
Parameters
Available Models
Jev scores each query and document pair in its own request, so no document affects another document’s score. Pairs run concurrently. Set
relevance_criteria to the exact condition you rank on. Jev reads it word for word.
With a decision model, stage metadata names the model that scored the documents in model_used and says whether its probabilities are calibrated in probabilities_calibrated.
On 100 SciFact claims, reranking the top 30 vector results with Jev raised nDCG@10 from 0.817 to 0.880 at 669 ms per query. The same rerank through mixpeek__decision with gemini-2.5-flash-lite scored 0.806 at 2.1 s.
For other models, deploy your own via a custom extractor and reference it with feature_uri.
Configuration Examples
How Cross-Encoders Work
Cross-encoders see the full context of both query and document together, enabling better understanding of semantic relationships.
Two-Stage Retrieval Pattern
The recommended pattern is fast recall followed by precise reranking:- Search stage: Fast, retrieves 100 candidates (< 20ms)
- Rerank stage: Slower but precise, picks best 10 (50-100ms)
- Total: High-quality results in 70-120ms
Performance
Output
Each returned document includes:Common Pipeline Patterns
Search + Rerank + Limit
Search + Filter + Rerank
Custom Reranker (BYO Model)
Use your own reranker model deployed as a custom extractor instead of the built-in models. Setfeature_uri to route reranking through your extractor’s inference endpoint.
Parameters
Your plugin must accept
{pairs: [[query, doc], ...]} and return {scores: [float, ...]}.
Configuration Example
Trade-offs
Related
- Feature Search - Initial candidate retrieval
- Feature Search - Combined vector + text search
- Sort Attribute - Simple attribute sorting

