LightRAG/lightrag_webui
Raphaël MANSUY 730c406749 feat: Implement multi-tenant support across graph and query routes
- Enhanced graph_routes.py and query_routes.py to support multi-tenant architecture by introducing tenant-specific RAG instances.
- Updated create_graph_routes and create_query_routes functions to accept rag_manager for tenant management.
- Added get_tenant_rag dependency to all relevant endpoints to ensure tenant context is utilized for operations.
- Modified Vite configuration to include comprehensive API proxy rules for seamless interaction with backend services.
- Implemented cascade delete functionality in tenant_service.py for tenant and knowledge base deletions.
- Added detailed logging and error handling for tenant operations.
- Created audit logs documenting the multi-tenant implementation process and decisions made.
2025-12-05 00:04:29 +08:00
..
public Fix linting 2025-05-12 23:27:41 +08:00
src feat(webui): Add single-tenant/multi-tenant mode support 2025-12-04 20:37:06 +08:00
.env.development cherry-pick 04d23671 2025-12-04 19:18:35 +08:00
.gitignore tests: stabilize integration tests + skip external services; fix multi-tenant API behavior and idempotency (#4) 2025-12-04 16:04:21 +08:00
.prettierrc.json
bun.lock cherry-pick 50210e25 2025-12-04 19:18:16 +08:00
components.json
Dockerfile tests: stabilize integration tests + skip external services; fix multi-tenant API behavior and idempotency (#4) 2025-12-04 16:04:21 +08:00
env.development.smaple cherry-pick 04d23671 2025-12-04 19:18:35 +08:00
env.local.sample cherry-pick 04d23671 2025-12-04 19:18:35 +08:00
eslint.config.js
index.html
package.json cherry-pick 50210e25 2025-12-04 19:18:16 +08:00
README.md cherry-pick a93c1661 2025-12-04 19:19:22 +08:00
tailwind.config.js cherry-pick 50210e25 2025-12-04 19:18:16 +08:00
tsconfig.json Add KaTeX mhchem extension support and improve math rendering 2025-09-28 15:13:04 +08:00
vite.config.ts feat: Implement multi-tenant support across graph and query routes 2025-12-05 00:04:29 +08:00

LightRAG WebUI

LightRAG WebUI is a React-based web interface for interacting with the LightRAG system. It provides a user-friendly interface for querying, managing, and exploring LightRAG's functionalities.

Installation

  1. Install Bun:

    If you haven't already installed Bun, follow the official documentation: https://bun.sh/docs/installation

  2. Install Dependencies:

    In the lightrag_webui directory, run the following command to install project dependencies:

    bun install --frozen-lockfile --production
    
  3. Build the Project:

    Run the following command to build the project:

    bun run build
    

    This command will bundle the project and output the built files to the lightrag/api/webui directory.

Development

  • Start the Development Server:

    If you want to run the WebUI in development mode, use the following command:

    bun run dev
    

Script Commands

The following are some commonly used script commands defined in package.json:

  • bun install: Installs project dependencies.
  • bun run dev: Starts the development server.
  • bun run build: Builds the project.
  • bun run lint: Runs the linter.