LightRAG/lightrag
Raphaël MANSUY a6aa073d70 feat(webui): Add single-tenant/multi-tenant mode support
- Add LIGHTRAG_MULTI_TENANT env var to control multi-tenant mode
- Add multi_tenant_enabled flag to /auth-status and /health endpoints
- Update LoginPage to auto-redirect in single-tenant mode
- Update App.tsx to set default tenant/KB in single-tenant mode
- Update TenantSelector to skip API calls in single-tenant mode
- Update SiteHeader to hide tenant selector in single-tenant mode
- Update useTenantInitialization hook to skip in single-tenant mode
- Update AuthStore with multiTenantEnabled state

In single-tenant mode (default):
- No tenant selection UI shown
- Auto-creates default tenant and KB context
- Direct access to all WebUI features

In multi-tenant mode (LIGHTRAG_MULTI_TENANT=true):
- Shows tenant/KB selection UI
- Requires tenant API routes to be configured
2025-12-04 20:37:06 +08:00
..
api feat(webui): Add single-tenant/multi-tenant mode support 2025-12-04 20:37:06 +08:00
evaluation cherry-pick f490622b 2025-12-04 19:19:24 +08:00
kg fix: sync all kg modules from upstream 2025-12-04 19:22:13 +08:00
llm fix: sync openai.py from upstream 2025-12-04 19:20:11 +08:00
models tests: stabilize integration tests + skip external services; fix multi-tenant API behavior and idempotency (#4) 2025-12-04 16:04:21 +08:00
services tests: stabilize integration tests + skip external services; fix multi-tenant API behavior and idempotency (#4) 2025-12-04 16:04:21 +08:00
tools cherry-pick 66d6c7dd 2025-12-04 19:19:21 +08:00
__init__.py cherry-pick 7cddd564 2025-12-04 19:18:15 +08:00
base.py fix: sync base.py from upstream to remove orphaned abstract methods 2025-12-04 19:26:25 +08:00
constants.py cherry-pick 88a45523 2025-12-04 19:19:22 +08:00
exceptions.py fix: sync all core modules with upstream after Wave 1 2025-12-04 19:13:48 +08:00
lightrag.py cherry-pick 9c10c875 2025-12-04 19:19:05 +08:00
namespace.py Add entity/relation chunk tracking with configurable source ID limits 2025-12-04 19:11:19 +08:00
operate.py fix: sync core modules from upstream 2025-12-04 19:20:28 +08:00
prompt.py fix: sync all core modules with upstream after Wave 1 2025-12-04 19:13:48 +08:00
rerank.py Fix top_n behavior with chunking to limit documents not chunks 2025-12-04 19:11:22 +08:00
security.py tests: stabilize integration tests + skip external services; fix multi-tenant API behavior and idempotency (#4) 2025-12-04 16:04:21 +08:00
tenant_rag_manager.py tests: stabilize integration tests + skip external services; fix multi-tenant API behavior and idempotency (#4) 2025-12-04 16:04:21 +08:00
types.py Add is_truncated to graph query for NetworkX graph db 2025-04-02 22:12:20 +08:00
utils.py fix: sync core modules from upstream 2025-12-04 19:20:28 +08:00
utils_context.py tests: stabilize integration tests + skip external services; fix multi-tenant API behavior and idempotency (#4) 2025-12-04 16:04:21 +08:00
utils_graph.py cherry-pick 6b4514c8 2025-12-04 19:19:00 +08:00