yangdx
43996656d3
Fix linting
2025-03-18 03:30:43 +08:00
yangdx
f8440c8f80
feat(auth): implement auto guest mode and enhance token system
...
- Add role-based token system with metadata support
- Implement automatic guest mode for unconfigured authentication
- Create new /auth-status endpoint for authentication status checking
- Modify frontend to auto-detect auth status and bypass login when appropriate
- Add guest mode indicator in site header for better UX
This change allows users to automatically access the system without manual
login when authentication is not configured, while maintaining secure
authentication when credentials are properly set up.
2025-03-18 02:56:02 +08:00
choizhang
b58729751a
Merge branch 'improve-property-tooltip' into loginPage
2025-03-15 00:11:50 +08:00
yangdx
6893e3c4e2
Unify two log filters into one and move it to utils
2025-03-13 17:39:06 +08:00
yangdx
002d675dc6
Explicitly set API docs and schema URLs.
...
- Set OpenAPI schema URL to `/openapi.json`
- Set docs URL to `/docs`
- Set redoc URL to `/redoc`
- Update Vite config for API docs routing
- Ensure proper path handling for docs endpoints
2025-03-13 13:00:14 +08:00
yangdx
330f608fa9
Fix linting
2025-03-12 18:55:15 +08:00
yangdx
5c1cf6a8ff
Prevent caching problem of HTML files for web UI
...
- Add NoCacheStaticFiles class
- Set Cache-Control headers for HTML files
2025-03-12 18:54:35 +08:00
choizhang
6b22e8065b
Added loginPage
2025-03-11 14:48:19 +08:00
yangdx
5d64f3b0a0
Improved auto-scan task initialization and status tracking.
...
- Added autoscan status tracking in pipeline
- Ensured auto-scan runs only once per startup
2025-03-10 17:14:14 +08:00
yangdx
bc42afe7b6
Unify llm_response_cache and hashing_kv, prevent creating an independent hashing_kv.
2025-03-09 22:15:26 +08:00
yangdx
020a6b5ae0
Refactor LLM cache config to use argparse and add status display
2025-03-09 16:45:57 +08:00
yangdx
c2f861fba9
Settign LLM cache option for entity extraction from env
2025-03-07 15:03:33 +08:00
Milin
c015296081
refactor(api): Fix issues reported by pre-commit
...
- Modified code layout and formatting in multiple files, improving code readability.
- Updated import statements, removing unused libraries.
- Simplified the writing of some functions and exception handling.
2025-03-06 14:23:52 +08:00
Milin
59e3b2eec1
refactor(api): Code optimization based on review comments.
...
- Removed authentication dependency for the health check endpoint in lightrag_server.py
- Removed the authentication dependency for the entire router in ollama_api.py
- Updated the parameter list and example usage in README.md, removing authentication-related parts
- Removed neo4j and tqdm dependencies from requirements.txt
- Deleted command-line argument parsing code related to authentication from utils_api.py
2025-03-05 20:38:05 +08:00
Milin
11502fc756
Merge branch 'HKUDS:main' into feat_login-jwt
2025-03-05 20:21:21 +08:00
zrguo
06fc65d9a0
Revert "[EVO] Add language configuration to environment and argument parsing"
...
This reverts commit a688b8822a8a9eb3853781bb5c71029a22aa5396.
2025-03-05 16:26:28 +08:00
Milin
852634e20e
Merge branch 'main' into feat_login-jwt
2025-03-05 12:42:40 +08:00
Milin
63aa4f9dfc
feat(api): Add user authentication functionality
...
- Implement JWT-based user authentication logic
- Add login endpoint and token validation middleware
- Update API routes with authentication dependencies
- Add authentication-related environment variables
- Optimize requirements.txt with necessary dependencies
2025-03-05 11:09:31 +08:00
Yannick Stephan
a39e1554d1
Merge pull request #994 from Brocowlee/language_support
...
[EVO] Add language configuration to environment and argument parsing
2025-03-04 22:33:03 +01:00
Brocowlee
a688b8822a
[EVO] Add language configuration to environment and argument parsing
2025-03-04 10:09:47 +00:00
Saifeddine ALOUI
694daf158a
Merge branch 'HKUDS:main' into main
2025-03-04 08:27:53 +01:00
zrguo
6094c62540
Merge pull request #987 from danielaskdd/fix-webui-install
...
fix: api server installation missing MANIFEST.in file
2025-03-04 13:26:19 +08:00
yangdx
d7f7c07251
Fix linting
2025-03-04 12:19:40 +08:00
yangdx
b12c05ec0a
fix: api server installation missing MANIFEST.in file
...
- Added MANIFEST.in to include webui files
- Removed /webui/ endpoint from lightrag_server.py
2025-03-04 12:09:00 +08:00
yangdx
b26a574f40
Deprecate log_level and log_file_path in LightRAG.
...
- Remove log_level from API initialization
- Add warnings for deprecated logging params
2025-03-04 01:07:34 +08:00
yangdx
462c27c167
Refactor logging setup and simplify Gunicorn configuration
...
• Move logging setup code to utils.py
• Provide setup_logger for standalone LightRAG logger intialization
2025-03-03 23:18:41 +08:00
Saifeddine ALOUI
5680e9ef11
Update lightrag_server.py
2025-03-03 12:24:49 +01:00
yangdx
8d6960f280
Fix linting
2025-03-02 00:13:11 +08:00
yangdx
f76cf98dbd
Add automatic dependency checking and installation for server startup
...
• Added check_and_install_dependencies()
• Install missing dependencies automatically
2025-03-02 00:04:59 +08:00
yangdx
40e9e26edb
feat: add update flags status to API health endpoint
2025-03-01 14:58:26 +08:00
yangdx
c07a5039b7
Refactor shared storage locks to separate pipeline, storage and internal locks for deadlock preventing
2025-03-01 10:48:55 +08:00
yangdx
fd76e00c6a
Refactor storage initialization to separate object creation from data loading
...
• Split __post_init__ and initialize()
• Move data loading to initialize()
• Add FastAPI lifespan integration
2025-03-01 03:48:19 +08:00
yangdx
b3328542c7
refactor: migrate synchronous locks to async locks for improved concurrency
...
• Add UnifiedLock wrapper class
• Convert with blocks to async with
2025-03-01 02:22:35 +08:00
yangdx
aac1bdd9e6
feat: add configurable log rotation settings via environment variables
...
• Add LOG_DIR env var for log file location
• Add LOG_MAX_BYTES for max log file size
• Add LOG_BACKUP_COUNT for backup count
2025-02-28 23:21:14 +08:00
yangdx
c973498c34
Fix linting
2025-02-28 21:35:04 +08:00
yangdx
c37b1e8aa7
Align Gunicorn configuration with Uvicorn
...
- centralize config in gunicorn_config.py
- fix log level handling in Gunicorn
2025-02-28 20:41:11 +08:00
yangdx
f588cdc5df
Optimize logging config & worker handling for different server modes
...
• Separate logging config for uvicorn/gunicorn
• Force workers=1 in uvicorn mode
• Add warning for worker count in uvicorn
2025-02-28 16:50:54 +08:00
yangdx
81f6f6e343
Fix lightrag logger initailization problem, fix gunicorn acccess log missing
2025-02-28 16:07:33 +08:00
yangdx
157ec862ae
Enhance logging system with file rotation and unified configuration
...
• Unify logging across Gunicorn and Uvicorn
• Add rotating file handlers
2025-02-28 14:57:25 +08:00
yangdx
b090a22be7
Add concurrency check for auto scan task to prevent duplicate scans
...
• Add pipeline status check before scan
• Add storage lock protection
• Add latest_message to status tracking
• Add helpful log message at startup
2025-02-28 12:22:20 +08:00
yangdx
64f22966a3
Fix linting
2025-02-27 19:05:51 +08:00
yangdx
03d05b094d
Improve Gunicorn support and cleanup shared storage initialization
...
• Move Gunicorn check before other startup
• Improve startup flow organization
2025-02-27 14:13:42 +08:00
yangdx
7aec78833c
Implement Gunicorn+Uvicorn integration for shared data preloading
...
- Create run_with_gunicorn.py script to properly initialize shared data in the
main process before forking worker processes
- Revert unvicorn to single process mode only, and let gunicorn do all the multi-process jobs
2025-02-27 13:25:22 +08:00
yangdx
7c237920b1
Refactor shared storage to support both single and multi-process modes
...
• Initialize storage based on worker count
• Remove redundant global variable checks
• Add explicit mutex initialization
• Centralize shared storage initialization
• Fix process/thread lock selection logic
2025-02-27 08:48:33 +08:00
yangdx
7436c06f6c
Fix linting
2025-02-26 18:11:16 +08:00
yangdx
41f5d208a9
fix: shared data intitialization failed for multi-worker
2025-02-26 13:32:15 +08:00
yangdx
15a6a9cf7c
fix: log filtering void when uvicorn wokers is greater than 1
...
- Centralize logging setup
- Fix logger propagation issues
2025-02-26 12:23:35 +08:00
yangdx
2752a764ae
Refactor storage implementations to support both single and multi-process modes
...
• Add shared storage management module
• Support process/thread lock based on mode
2025-02-26 05:38:38 +08:00
yangdx
d74a23d2cc
Add multiple workers support for API Server
2025-02-25 09:37:00 +08:00
yangdx
2e13def95c
Remove unused global_top_k variable and related configurations.
2025-02-24 18:20:39 +08:00