Fix: Handle invalid EMBEDDING_MAX_BATCH_SIZE gracefully#247
Fix: Handle invalid EMBEDDING_MAX_BATCH_SIZE gracefully#247bnyashwanth wants to merge 2 commits intoAOSSIE-Org:mainfrom
Conversation
📝 WalkthroughWalkthroughAdds guarded parsing and logging to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🪛 Ruff (0.14.11)backend/config.py22-22: Abstract (TRY301) 🔇 Additional comments (2)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Fixes #244
The application previously crashed with a
ValueErrorifEMBEDDING_MAX_BATCH_SIZEwas set to a non-integer value or an invalid string.Changes
try-exceptblock inbackend/config.py.32instead of crashing the backend.Verification
EMBEDDING_MAX_BATCH_SIZE="invalid_text".Warning: Invalid EMBEDDING_MAX_BATCH_SIZE 'invalid_text'. Defaulting to 32.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.