UPDATElightrag v1.5.8
LightRAG v1.5.8 blocks unsafe upgrades and repairs graph writes
The LightRAG release notes for v1.5.8 bind configuration, embedding space, and deployment identity to each workspace. Mismatched models are refused, graph writes are serialized, and failed deletions are retryable. Back up and stop old instances first; the WebUI moves to accounts and Ollama routes need a key.
What changed in this release
24 checkpoints in 6 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Configuration and deployment identity
- Configuration storage records embedding-space baselines for entities, relationships, and chunks in each workspace.
- Changing the embedding model on an existing workspace now refuses startup; restore configuration or rebuild vectors.
- The first start records backend type and container UUID in an anchor file under WORKING_DIR.
- lightrag-migrate-config migrates configuration across backend types while every server is stopped.
Storage defaults
- The setup wizard defaults to the official pgvector image and offers PGTableGraphStorage.
- PGGraphStorage, RedisKVStorage, and RedisDocStatusStorage are deprecated but keep working.
- Redis deployments fall back to JSON configuration storage and log a startup warning.
- Servers sharing WORKING_DIR need separate workspaces and ports plus the same configuration storage.
Graph and document lifecycle
- Manual NetworkX graph writes are serialized against each other and ingestion to prevent interference.
- Entity and relation commit ordering was reworked to reduce data-loss risk from interruptions.
- Interrupted document deletions are visible and retryable; failed rebuilds no longer report success.
- Post-deletion rebuilds re-extract surviving chunks missing their cache; lightrag-repair-chunk-tracking cleans orphan tracking rows.
Login and API access
- The WebUI uses account-only login and no longer prompts for, stores, or sends API keys.
- Servers protected only by LIGHTRAG_API_KEY display account-configuration guidance.
- Ollama-compatible routes reject keyless requests with HTTP 403 when a key is configured.
- Account passwords over 72 bytes are rejected, and TOKEN_SECRET should be random and at least 32 bytes.
Query and parsing boundaries
- Failed library queries now raise, allowing callers to separate empty results from failures.
- Answers containing only a think trace and no text are treated as errors and not cached.
- Keyword extraction requests JSON mode by default and retries once without the field after rejection.
- Chunk-size inputs reject values below 64 tokens; already queued documents are unaffected.
Offline migration and cleanup
- lightrag-clear-storage clears the workspace, configuration storage, and anchor for an embedding-model change.
- lightrag-gc-llm-cache reports extraction cache for missing chunks; --apply deletes it.
- Document deletion supports delete_parsed_files and folds LLM cache clearing into the destructive clear.
- POST /documents/clear_cache is removed; use DELETE /documents?clear_llm_cache=true.
On this page
ContextThis release protects data identity before tightening writes and login
LightRAG v1.5.8 targets knowledge-base handover risks: configuration moving with storage, vectors tracking an old model, deleted text staying in graphs, and mismatched UI/API access.
This article groups the release into six areas: configuration, storage defaults, graph lifecycle, access, queries, and cleanup. It lists the v1.5.8 fixes first, then compares peers and v1.5.7 in two tables.
The figure maps the 6 groups from data identity through storage, writes, deletion, access, queries, and cleanup. The sections below expand each group with its result, action, and cost.
Configuration storage ties workspaces to vector space and deployment identity
- Wrong model: restore the original embedding configuration or rebuild with lightrag-rebuild-vdb.
- New backend: back up WORKING_DIR and its anchor before changing configuration storage.
- Migration: stop servers, use lightrag-migrate-config, or reset with lightrag-clear-storage.
PostgreSQL defaults to pgvector while AGE and Redis become deprecated
- New installs: the wizard uses the pgvector image and offers PGTableGraphStorage.
- Existing AGE: migrate the graph first; Redis users must persist WORKING_DIR.
- Shared directory: separate WORKSPACE and port per server, with one configuration storage.
Graph writes and document deletion stop hiding interruptions behind success
- On the NetworkX graph backend, schedule graph edits separately from ingestion because writes are serialized.
- Retry interrupted deletions; verify final state because failed rebuilds fail deletion.
- Repair tracking with lightrag-repair-chunk-tracking; inspect cache with lightrag-gc-llm-cache.
The WebUI requires accounts and Ollama-compatible routes require an API key
- Keep the API key; set AUTH_ACCOUNTS and a random TOKEN_SECRET of at least 32 bytes.
- Open WebUI: enter the API key in the Ollama connection’s API key field.
- Whitelist: WHITELIST_PATHS=/health,/api/* restores old behavior but bypasses protection.
Query failures raise errors and keyword extraction tolerates JSON-mode rejection
- Catch query exceptions and distinguish empty results from failed calls.
- Keep KEYWORD_EXTRACTION_JSON_MODE=auto and rerun previously empty local, global, and hybrid queries.
- Chunk sizes below 64 tokens are rejected; queued documents are unaffected.
Offline tools turn migration, reset, and cache cleanup into explicit operations
- Stop servers and maintenance tools, run lightrag-migrate-config, then set LIGHTRAG_CONFIG_STORAGE.
- Back up WORKING_DIR, the anchor, and databases before lightrag-clear-storage.
- Review lightrag-gc-llm-cache output before deleting rows with --apply.
Peer tools manage migration and deletion at different control points
LightRAG checks identity at startup and repairs deletion in its graph lifecycle. RAGFlow 1.0.0 migrates at container startup and purges engine data on document removal; GraphRAG 3.3.0 manages upgrades inside its data workflow.
These self-hosted products differ: RAGFlow is a full service, GraphRAG a pipeline, LightRAG a graph server. The table compares official controls, not feature counts.
Choose LightRAG for startup guards and retryable deletion, RAGFlow for automatic container migration, or GraphRAG for custom batch pipelines; prefer the latter two when configuration lives inside the workflow.
| Update | RAGFlow v1.0.0 | Microsoft GraphRAG v3.3.0 | LightRAG v1.5.8 |
|---|---|---|---|
| Configuration and upgrades | Automatic container migration from v0.27.2; irreversible | Minor-version init; major-version migration notebook | Embedding baselines; offline migration; startup anchor |
| Deployment form and default components | Docker for evaluation and production, or source; NATS replaces Redis; Kvrocks for cache and checkpoints | Python pipeline and CLI; README marks the code a demonstration and the project in maintenance mode | pgvector image by default with PGTableGraphStorage offered; AGE and Redis storage deprecated |
| Graph and document lifecycle | RemoveDocumentKeepFile purges engine data | Entity/relation/claim extraction; TextUnit references | Serialized NetworkX writes; retryable deletion; rebuild failures fail |
| Query and parsing | Agentic Chat: retrieval, tools, evidence checks | Global, Local, DRIFT, Basic search | JSON-mode extraction retries without rejected field |
| Entry point | Browser login, then model service address and API key | CLI runs graphrag init --root [path] --force to refresh config format | Account-only WebUI; keyless Ollama-compatible requests rejected |
| Operations and leftovers | Back up; restore full backup on migration failure | Configuration/prompt backups; reindexing path | Migration, clear, tracking repair, cache cleanup |
From v1.5.7 to v1.5.8, the upgrade focus shifts to data integrity
v1.5.7 delivered /workspace, branding, and global prompts; v1.5.8 adds identity, configuration, write, and deletion checks behind them.
Maintenance changes most: configuration migration joins graph migration, and UI work now needs account setup. A new image is not enough.
Reuse the v1.5.7 query scenario with account login; programmatic access keeps API keys. Order: back up, stop every old instance, start once, then check accounts, queries, and deletion recovery.
| Feature | v1.5.7 | v1.5.8 |
|---|---|---|
| End-user entry | Adds mobile /workspace chat | Account login; no API-key entry |
| UI and login | UI branding; USER_PROMPT_PREFIX | Account-only WebUI; TOKEN_SECRET required |
| PostgreSQL path | AGE-to-PostgreSQL-table migration | pgvector image; PGTableGraphStorage offered; AGE deprecated |
| Configuration migration | Graph migration; no separate config store described | Config storage, anchor, cross-backend migration |
| Embedding changes | No workspace baseline described | Baselines; changed model refused |
| Graph/deletion recovery | NetworkX returns; incremental chunk identifiers | Serialized writes; retryable deletion; failed rebuilds fail |
Release analysisMaintenance paths need attention before every application needs redesign
Shared workspaces, graph maintenance, model changes, and deletion carry the most work. Reserve a write freeze, back up WORKING_DIR and databases, and reconfigure accounts and Ollama. Stable single-instance applications can wait.
RAGFlow v1.0.0 automates container migration, GraphRAG v3.3.0 manages a batch pipeline, and LightRAG v1.5.8 rejects identity mismatches at startup. Pick the control point that fits your operating model.
Our view, not independently tested: back up, then stop every old instance, including shared-storage servers, workers, and maintenance tools, before the first v1.5.8 start binds the anchor. Run acceptance on a copy isolated from production storage, never with an old writer running.
Our view, not independently tested: record wrong-model rejection, deletion retry, and recovered empty queries, and review reports or backups before destructive migration and cache cleanup.
AIGenLab views
Not independently testedBack up and stop every old instance, including shared-storage servers, workers, and maintenance tools, then start v1.5.8 to bind the anchor; run acceptance on a copy isolated from production storage.
Based on the first official upgrade note and the deployment-anchor mechanism; our view, not independently tested.
Keep three acceptance records: wrong-model rejection, interrupted-deletion retry, and recovery of previously empty queries.
Acceptance actions for three changes in this release; our view, not independently tested.
Official sources and scope
- LightRAG v1.5.8 release notes Current features, breaking changes, upgrade steps, and offline tools.
- LightRAG v1.5.7 release notes Previous /workspace, UI customization, global prompts, and graph migration capabilities.
- RAGFlow v1.0.0 release notes RAGFlow automatic migration, unified parsing, Agentic Chat, storage changes, and engine-data purge on document removal.
- RAGFlow v1.0.0 README RAGFlow self-hosted shape, browser login, and configurable model services.
- Microsoft GraphRAG v3.3.0 release notes The GraphRAG version and its SQLite performance fix.
- Microsoft GraphRAG v3.3.0 README GraphRAG data-pipeline positioning, maintenance status, and version migration approach.
- Microsoft GraphRAG v3.3.0 documentation GraphRAG TextUnits, entity and relation extraction, and four query modes.
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.