yangdx
4d57370c94
Refactor: Move get_env_value from api.config to utils
...
Relocates the `get_env_value` utility function
from `lightrag.api.config` to `lightrag.utils` to decouple
LightRAG core from API Server
2025-05-10 08:58:18 +08:00
yangdx
c8ecfa2d68
feat: Centralize configuration and update defaults
...
This commit introduces `lightrag/constants.py` to centralize default values for various configurations across the API and core components.
Key changes:
- Added `constants.py` to centralize default values
- Improved the `get_env_value` function in `api/config.py` to correctly handle string "None" as a None value and to catch `TypeError` during value conversion.
- Updated the default `SUMMARY_LANGUAGE` to "English"
- Set default `WORKERS` to 2
2025-05-06 22:00:43 +08:00
HyuPete
954c3b4ff2
fix error when running caused by global_args.timeout
being None
2025-04-10 15:57:50 +07:00
yangdx
caac0479d3
Fix linting
2025-04-04 21:34:13 +08:00
yangdx
95630aa669
Centralize env reading
2025-04-04 21:06:21 +08:00
yangdx
c590d5878c
refactor: standardize .env loading behavior across modules
...
- Use .env from current folder for each lightrag instance
- Allow different .env files for different instances
- Make OS env vars take precedence over .env file
2025-03-29 03:37:23 +08:00
yangdx
d83ae39541
feat: add .env file check on startup
...
- Show warning if .env is missing
- For CLI startup: prompt for user confirmation
- For service startup: display warning only
2025-03-26 21:08:24 +08:00
Saifeddine ALOUI
2333958a6b
upgraded to use current folder's .env if present
2025-03-25 13:45:51 +01:00
yangdx
1f6d230da1
Increased default timeout values for Gunicorn configuration
...
- Doubled default timeout to 300 seconds
2025-03-21 15:26:23 +08:00
yangdx
67eee2d2d5
Prioritize OS environment variables over .env file to improve Docker compatibility for the server
2025-03-21 13:27:12 +08:00
Saifeddine ALOUI
f1ad55244a
linting
2025-03-04 14:44:12 +01:00
Saifeddine ALOUI
7b3e394730
Update run_with_gunicorn.py
2025-03-03 12:23:47 +01:00
Saifeddine ALOUI
52bedc9118
Update run_with_gunicorn.py
2025-03-03 12:22:37 +01:00
Saifeddine ALOUI
bda931e1d2
Update run_with_gunicorn.py
2025-03-03 12:21:50 +01:00
Saifeddine ALOUI
e87feb76bc
Update run_with_gunicorn.py
2025-03-03 12:21:15 +01:00
Saifeddine ALOUI
ff3f29d240
Update run_with_gunicorn.py
2025-03-03 12:13:01 +01:00
Saifeddine ALOUI
7a866cbe21
Update run_with_gunicorn.py
2025-03-03 11:48:43 +01:00
yangdx
fb5f11f594
Add Gunicorn support for production deployment of LightRAG server
...
- Move gunicorn startup an config files to api package
- Create new CLI entry point for Gunicorn mode
2025-03-02 18:17:51 +08:00