What are Reranking Nodes?
Reranking nodes are processing components that use LLMs (like GPT-4) to evaluate and reorder documents retrieved by your system. They analyze documents with deep semantic understanding to improve result relevance.Key Features
- LLM-Powered: Use advanced language models for intelligent document scoring
- Quality Enhancement: Improve result precision and user satisfaction
- Flexible Configuration: Adjust the number of results to return (Top K)
- Performance Control: Balance quality improvements with processing speed
Available Endpoints
Endpoint | Method | Purpose |
---|---|---|
List Reranking Nodes | GET | Get reranking node configurations |
Update Reranking Configuration | PATCH | Modify reranking settings |
Configuration
Top K Parameter
The main configuration option istopK
- the maximum number of documents to return after reranking:
- Small values (3-5): Fast processing, highest precision
- Medium values (8-15): Balanced performance and quality
- Large values (20-30): More comprehensive results, slower processing
- null: Process all documents (highest resource usage)
Example Configuration
Node Structure
Common Use Cases
Customer Support
- Top K: 5-8
- Goal: Provide precise answers to customer queries
- Benefits: Faster resolution, better satisfaction
Knowledge Base Search
- Top K: 10-15
- Goal: Help users find information efficiently
- Benefits: Better search experience
Research Applications
- Top K: 20-30 or null
- Goal: Comprehensive results for analysis
- Benefits: Thorough coverage, better insights
Authentication
All endpoints require API token authentication:URL Structure
Basic Usage Example
Best Practices
- Start Small: Begin with lower Top K values and increase as needed
- Monitor Performance: Track processing time and resource usage
- Test Changes: Compare results before and after configuration changes
- Match Use Case: Choose Top K based on your specific requirements
Error Handling
Common errors and solutions:- “topK must be a positive integer or null”: Check parameter type
- “Reranking node not found”: Verify node ID
- “Failed to update reranking node”: Check system status and retry