-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: OpenAI batch api #2245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: OpenAI batch api #2245
Conversation
1a7eb06
to
bd05971
Compare
/claude-review |
Claude finished @anistark's task —— View job 🔍 PR Code Review: OpenAI Batch API ImplementationReview Progress:
📋 Change Type Classification✨ New Feature: This PR adds comprehensive OpenAI Batch API support to Ragas, enabling cost-effective evaluation with up to 50% savings for large-scale evaluations. 🚀 Strengths & Excellent Implementation✅ Outstanding Architecture Design
✅ Robust Error Handling & Validation
✅ Intelligent Response ParsingThe score extraction logic in
✅ Smart Faithfulness Integration
✅ Comprehensive Documentation
✅ Strong Test Coverage
🔄 Areas for Enhancement
|
Issue Link / Problem Description
Changes Made
Testing
How to Test
uv run pytest tests/ -k "batch" -v
to test batch functionality.uv run pytest tests/ -k "metric" -k "batch" -v
like:uv run pytest tests/ -k "faithfulness" -k "batch" -v
OPENAI_API_KEY=your_key uv run pytest tests/integration -k "batch" -v
with openai key.