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.
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

