-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Description
Add support for Mistral batch jobs API for more efficient and cost-effective embedding generation.
Current State
- File:
mistral.py:33 - Only real-time API supported
- No batch job support
Benefits of Batch Jobs
- Cost savings: Batch pricing typically lower
- Efficiency: Process large volumes efficiently
- Rate limiting: Avoid rate limit issues
- Resource optimization: Better utilization
Challenges
- State management: Track batch job status
- Async nature: Jobs complete asynchronously
- Error handling: Batch failures need special handling
- Polling: Need to check job completion
Use Cases
Ideal for:
- Initial indexing of large codebases
- Periodic re-indexing
- Bulk updates
- Non-time-critical operations
Less ideal for:
- Real-time search
- Interactive operations
- Time-sensitive updates
Requirements
- Implement batch job submission
- Add job status polling
- Handle batch results
- Graceful fallback to real-time API
- Configuration for batch vs real-time
Source
- File:
mistral.py:33 - Branch:
003-our-aim-to
Reactions are currently unavailable