Python SDK
Get started with the Mixedbread Python SDK. Learn how to install, configure, and use the SDK for reranking and embedding tasks.
Quick Start
Here's a quick example to get you started with the API:
Reranking documents
Embedding documents
Configuration
The MixedbreadAIClient
constructor accepts the following parameters:
api_key
: Your Mixedbread API key (required)max_retries
: Maximum number of retries for failed requests (default: 3)timeout
: Request timeout in seconds (default: 30.0)base_url
: Custom base URL for API requests (optional)
Error Handling
Use try/except blocks to handle errors:
Next Steps
- Get your API key in the Mixedbread dashboard
- Check out the full API documentation for more details on available endpoints and parameters
- Join our community for support and to share your projects
Happy baking! 🍞🚀