-
-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
📌 Issue Overview
EMBEDDING_MAX_BATCH_SIZE Crashes Application if Set to Non-Integer Value
🔍 Steps to Reproduce
- Set the environment variable
EMBEDDING_MAX_BATCH_SIZEto a non-integer value (e.g.,abcor leave it empty). - Run the application.
- The application attempts to convert the value to
intinbackend/config.py. - Show the error.
🎯 Expected Behavior
The application should handle invalid or missing EMBEDDING_MAX_BATCH_SIZE values gracefully and fall back to a safe default without crashing.
🚨 Actual Behavior
If EMBEDDING_MAX_BATCH_SIZE is set to a non-integer value or is empty, the application crashes with a ValueError in backend/config.py.
📷 Screenshot
💡 Suggested Improvements
- Add error handling in
backend/config.pyto catch invalidEMBEDDING_MAX_BATCH_SIZEvalues. - Use the default value if parsing fails.
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels