Add a new `/documents/reprocess_failed` API endpoint and corresponding UI button to retry processing of failed and pending documents. This addresses a common recovery scenario when document processing fails due to server crashes, network errors, or LLM service outages. Backend changes: - Add ReprocessResponse model with status, message, and track_id fields - Add POST /documents/reprocess_failed endpoint that triggers background reprocessing of FAILED, PENDING, and interrupted PROCESSING documents - Reuses existing apipeline_process_enqueue_documents for consistency - Includes comprehensive docstring and logging for observability Frontend changes: - Add TypeScript types and API function for the new endpoint - Add retry handler with intelligent polling (fast refresh → normal) - Add "Retry Failed" button in Documents page toolbar - Button disabled when pipeline is busy to prevent duplicate operations - Complete i18n support (English and Chinese translations) This feature provides a convenient way to recover from processing failures without requiring a full filesystem rescan.
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
-
Install Bun:
If you haven't already installed Bun, follow the official documentation: https://bun.sh/docs/installation
-
Install Dependencies:
In the
lightrag_webuidirectory, run the following command to install project dependencies:bun install --frozen-lockfile -
Build the Project:
Run the following command to build the project:
bun run build --emptyOutDirThis command will bundle the project and output the built files to the
lightrag/api/webuidirectory.
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.