Models
Zero Entropy offers two reranking models:zerank-1: Flagship state-of-the-art reranker (non-commercial license)zerank-1-small: Open-source model (Apache 2.0 license)
Installation
Configuration
Python
Environment Variables
Set your API key as an environment variable:Usage Example
Python
Configuration Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
model | Model to use: "zerank-1" or "zerank-1-small" | str | "zerank-1" |
api_key | Zero Entropy API key | str | None |
top_k | Maximum documents to return after reranking | int | None |
Performance
- Fast: Optimized neural architecture for low latency
- Accurate: State-of-the-art relevance scoring
- Cost-effective: ~$0.025/1M tokens processed
Best Practices
- Model Selection: Use
zerank-1for best quality,zerank-1-smallfor faster processing - Batch Size: Process multiple queries together when possible
- Top-k Limiting: Set reasonable
top_kvalues (5-20) for best performance - API Key Management: Use environment variables for secure key storage