yangdx
0ea55cb8cd
Update splash screen message
2025-04-01 18:30:31 +08:00
yangdx
65574459f9
standardize .env loading behavior across modules
2025-03-29 03:48:38 +08:00
yangdx
539fcd5ebb
Update env file warning message to be more specific
2025-03-29 03:42:51 +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
cce91bdd5a
Add core version to server startup splash screen
2025-03-28 08:20:55 +08:00
yangdx
dfa63e863c
Fix linting
2025-03-26 23:53:41 +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
yangdx
10245462f1
Remove unused get_api_key_dependency function
2025-03-26 18:09:42 +08:00
Milin
23004546dc
Merge branch 'main'
2025-03-25 15:57:14 +08:00
yangdx
799c1a884a
Fix linting
2025-03-25 12:51:45 +08:00
yangdx
72b085e19e
Refactor authentication logic and update API version.
2025-03-25 11:47:52 +08:00
yangdx
91f32dc561
Fix linting
2025-03-24 23:02:42 +08:00
yangdx
4698175d5d
Acept all if no API protection needed
2025-03-24 23:02:12 +08:00
yangdx
f0054545c0
Update webui assets
2025-03-24 17:05:56 +08:00
yangdx
deef7182b9
Added special endpoint API key checks
2025-03-24 15:02:10 +08:00
Milin
4dfdb9032c
feat(auth): Implement multi-user login support
...
- Add an `accounts` dictionary in `AuthHandler` to store multiple user account information.
- Modify login logic to support multiple user account verification.
- Update environment variable example, add description for `AUTH_ACCOUNTS` variable.
- Adjust authentication status check logic, use `auth_handler.accounts` to determine if authentication is configured.
2025-03-24 14:34:31 +08:00
yangdx
d05cf286f4
Fix linting
2025-03-24 14:30:17 +08:00
yangdx
9e3994419e
Refactor authentication logic and Swagger UI config
...
- Consolidate authentication dependencies
- Improve Swagger UI security parameters
2025-03-24 14:29:36 +08:00
yangdx
77ab26e5bf
Fix linting
2025-03-24 05:39:50 +08:00
yangdx
90ef55960d
Refactor authentication and whitelist handling
...
- Combined auth and API key dependencies
- Optimized whitelist path matching
- Added optional API key to OllamaAPI
2025-03-24 05:23:40 +08:00
yangdx
ff9cb2138d
Ensure thread safety in storage update callbacks
...
- Added storage lock in index_done_callback
- Fixed potential race conditions
2025-03-24 02:11:59 +08:00
yangdx
7e8a2c0e9b
Added temperature parameter for LLM
2025-03-24 02:02:34 +08:00
yangdx
ce05b436b9
Refactor splash screen display configuration layout.
2025-03-21 17:11:55 +08:00
yangdx
0761af19c6
Files are now processed in batches in auto scan
2025-03-21 13:41:37 +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
yangdx
c42f08c0e6
Add navigation service for centralized login redirect routing
...
- Simplify token validation logic in API
- Update axios interceptor to use navigation service
2025-03-18 19:45:43 +08:00
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
yangdx
c2ba7f33ff
Adjust concurrency limits more LLM friendly settings for new comers
...
- Lowered max async LLM processes to 4
- Enabled LLM cache for entity extraction
- Reduced max parallel insert to 2
2025-03-16 23:56:34 +08:00
zrguo
2bf40ab636
Merge branch 'main' into neo4j-add-min-degree
2025-03-10 22:24:06 +08:00
yangdx
4065a7df92
Fix linting
2025-03-10 02:07:19 +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
Saifeddine ALOUI
04862033d6
Made the defa&ult mode non docling
2025-03-09 13:14:39 +01:00
yangdx
020a6b5ae0
Refactor LLM cache config to use argparse and add status display
2025-03-09 16:45:57 +08:00
zrguo
c67e6aceca
Merge branch 'main' into main
2025-03-09 00:23:06 +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
Saifeddine ALOUI
00f3c6c6dd
Upgraded document loading engine
2025-03-06 01:11:48 +01:00
Saifeddine ALOUI
39c24f4a59
Update utils_api.py
2025-03-05 15:36:17 +01:00
Saifeddine ALOUI
c62422eade
Update utils_api.py
2025-03-05 15:33:54 +01: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
Brocowlee
a688b8822a
[EVO] Add language configuration to environment and argument parsing
2025-03-04 10:09:47 +00: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
7436c06f6c
Fix linting
2025-02-26 18:11:16 +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