47 model prices
  1. Home
  2. Releases
  3. LightRAG
  4. 1.5.8

LightRAG 1.5.8 release notes

LightRAG 1.5.8 was released on November 23, 2026. It is the latest version.

v1.5.8 · · 524 listed changesBreaking

The release notes for this version mention breaking changes.

Release notes

Important Notes

Highlights

1. Introduces a new storage type: Configuration storage

This store holds the key LightRAG configuration. It prepares the ground for gradually moving settings from the .env file into backend storage, and it also lays the foundation for the next step: account and permission management.

In v1.5.8 configuration storage holds each workspace's embedding baselines: for every vector target (entities, relationships, chunks), the embedding space its vectors were written in. Changing the embedding model on an existing workspace now refuses startup.

For more information, see:

2. PostgreSQL storage defaults

The setup wizard now generates PostgreSQL from the official pgvector/pgvector image and offers PGTableGraphStorage (plain tables, no Apache AGE) for the graph. PGGraphStorage (AGE) and the Redis storages (RedisKVStorage, RedisDocStatusStorage) are deprecated. They keep working and log a warning at startup.

3. Safer graph writes and document deletion

4. Security hardening and new provider

Breaking Changes
Upgrade Notes
  1. Back up first, then stop every old instance before starting v1.5.8. That includes all workers, servers sharing the storage, and maintenance tools. The first start creates the configuration container and binds the anchor. Do not do a rolling upgrade that leaves an old writer running.
  2. WORKING_DIR must persist, even if every storage is a database. It now holds config_storage_anchor.json, and for JSON configuration also <workspace>/kv_workspace_config.json. In Docker, keep it on a mounted volume. In Helm, keep persistence.enabled: true. An ephemeral WORKING_DIR loses the anchor and the JSON configuration on every restart. Include it in your backups.
  3. The embedding service must be reachable during the first start, so the adoption probe can record the baselines. Check the startup log for a WARNING that a baseline could not be established. If the start refuses with an embedding-space mismatch, your stored vectors do not match the configured model: fix the configuration, or run lightrag-rebuild-vdb.
  4. Redis users: with LIGHTRAG_KV_STORAGE=RedisKVStorage, the configuration storage defaults to JSON files in WORKING_DIR (see note 2). Redis storage is deprecated; plan a move to PostgreSQL.
  5. PGGraphStorage users: your deployment keeps working, and the wizard keeps the AGE-enabled image for it. To leave AGE, migrate the graph first ( refer to lightrag/tools/README_MIGRATE_GRAPH_STORAGE.md ).
  6. Optional: to keep the configuration in your database instead of JSON files, run lightrag-migrate-config --target-backend PGKVStorage (or MongoKVStorage / OpenSearchKVStorage) with every server stopped. Then set LIGHTRAG_CONFIG_STORAGE to that backend.
  7. To start over with a new embedding model, use lightrag-clear-storage rather than deleting files by hand. If you do delete files by hand, also remove kv_workspace_config.json and config_storage_anchor.json. Otherwise the recorded baseline refuses the new model.
  8. TOKEN_SECRET should be a random value of at least 32 bytes (for example, openssl rand -hex 32). The upgraded PyJWT warns about shorter secrets.
  9. Milvus users: the vector index always uses the COSINE metric. MILVUS_METRIC_TYPE is deprecated and ignored. A collection built with L2 or IP is re-indexed in place on the first start. No vector is re-embedded, but the collection is unavailable while the index rebuilds, so upgrade one instance first. Collection loading is now bounded by MILVUS_LOAD_TIMEOUT (default 600 seconds). Raise it if your largest collection needs longer to load, or startup fails. After a successful lightrag-rebuild-vdb or a workspace clear, the previous model's Milvus collection is dropped. See [docs/MilvusConfigurationGuide.md](https://github.com/HKUDS/LightRAG/blob/main/docs/MilvusConfigurationGuide.md).
  10. Timeouts now reach the provider clients. LLM_TIMEOUT (default 240 seconds, also per role), EMBEDDING_TIMEOUT and RERANK_TIMEOUT are passed to every provider client, also for library callers. A call that used to run past the timeout on the SDK's own default is now cut and retried. Raise the timeout for slow models. A value of 0 or below means no timeout.
  11. Query keyword extraction has a new KEYWORD_EXTRACTION_JSON_MODE (auto | json_object | none, default auto). auto requests JSON mode and retries once without it when the provider rejects the field. This fixes empty local / global / hybrid results on servers such as LM Studio.
  12. Account passwords longer than 72 bytes (UTF-8) are rejected by lightrag-hash-password, because bcrypt reads only the first 72 bytes.
  13. Optional: run lightrag-gc-llm-cache (report only; add --apply to delete) to remove extraction cache rows left behind by documents deleted on earlier versions.

What's New

What's Changed

New Contributors

Full Changelog: https://github.com/HKUDS/LightRAG/compare/v1.5.7...v1.5.8

Source: GitHub release v1.5.8

Older: 1.5.7LightRAG