Is there an existing issue for this?
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_SIZE to a non-integer value (e.g., abc or leave it empty).
- Run the application.
- The application attempts to convert the value to
int in backend/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.py to catch invalid EMBEDDING_MAX_BATCH_SIZE values.
- Use the default value if parsing fails.
Record