TypeScript SDK
Learn how to install and configure Mixedbread's TypeScript SDK for interacting with our API services.
Installation
Quick Start
Here's a quick example of client initialization:
Configuration
The Mixedbread
constructor accepts the following options:
apiKey
: Your Mixedbread API key (required)maxRetries
: Maximum number of retries for failed requests (default: 3)timeout
: Request timeout in milliseconds (default: 30000)baseURL
: Custom base URL for API requests (default: https://api.mixedbread.com)
Error Handling
Use try/catch blocks to handle errors:
Available Services
The SDK provides access to the following services:
mxbai.vectorStores
- Create and manage vector storesmxbai.vectorStores.files
- Create and manage vector stores filesmxbai.files
- Upload and manage filesmxbai.parsing
- Manage parsing jobsmxbai.embed
- Generate embeddingsmxbai.rerank
- Rerank search results
Documentation and Examples
For detailed usage examples and API documentation, check out:
Next Steps
- Get your API key in the Mixedbread dashboard
- Join our community for support and to share your projects
Last updated on