v1.3.1

HKUDS/LightRAGv1.3.1Apr 7, 2025by danielaskdd

AI Summary

A major update introducing a refactored PostgreSQL AGE implementation and the removal of unsupported graph storage backends, accompanied by extensive WebUI enhancements like graph visualization improvements and document management features.

Key Highlights

  • Refactored PostgreSQL AGE implementation introducing breaking changes incompatible with existing graph data.
  • Removal of unsupported graph storage backends (Gremlin, TiDB, MongoDB, Oracle).
  • New WebUI features: Graph undirected mode, edge thickness, node coloring by type, and document status filtering.
  • Dynamic LLM selection and TokenTracker for LLM usage monitoring.

Breaking Changes

  • Refactoring PostgreSQL AGE graph storage implementation, which introduces breaking changes that are incompatible with existing graph data.

New Features

  • Dynamic LLM Selection via QueryParam
  • TokenTracker to track token usage for LLM calls
  • RedisKVStorage improvements (Connection Pooling, Error Handling, Batch Processing)
  • WebUI: Graph undirected mode, edge thickness, node coloring by type, document status filter, sortable columns, file name display, Pipeline status, drop all documents, customized title

Full Release Notes

## New features for core and server
* Refactoring PostgreSQL AGE graph storage implementation, which introducing **breaking changes that are incompatible with existing graph data** by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1237
* Use startup folder's .env to support multiple instances LightRAG server @ParisNeo in https://github.com/HKUDS/LightRAG/pull/1185
* Dynamic LLM Selection via QueryParam for Optimized Performance by @omdivyatej in https://github.com/HKUDS/LightRAG/pull/1167
* Add TokenTracker to track token usage for LLM calls by @choizhang in https://github.com/HKUDS/LightRAG/pull/1207
* RedisKVStorage: Add Connection Pooling, Error Handling, and Batch Processing by @shmily1012 in https://github.com/HKUDS/LightRAG/pull/1258
* Add context manager support to simplify token tracking by @choizhang in https://github.com/HKUDS/LightRAG/pull/1229
* Add client configuration support to OpenAI integration by @shane-lil in https://github.com/HKUDS/LightRAG/pull/1208
* Optimize config management by @lcjqyml in https://github.com/HKUDS/LightRAG/pull/1233
* Add FAISS_USE_GPU env var to control which version of FAISS to be installed by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1237
* Remove graph storage which lack of support: Gremlin、TiDB graph、MongoDB graph by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1237
* Remove Oracle storage completely  by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1237

## New features for WebUI
* Change graph to an undirected one by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1284
* Add graph edge thickness by @choizhang in https://github.com/HKUDS/LightRAG/pull/1242
* Add graph nodes of the same type represented by the same color by @choizhang in https://github.com/HKUDS/LightRAG/pull/1265
* Add document status filter feature, support filtering documents by status by @ericshao in 
* Add file name display in WebUI by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1187
* Add sortable columns to document manager by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1202
* Add Pipeline status to WebUI by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1192
* Add drop all documents in WebUI by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1237
* Improve user experience of multiple files upload  by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1193
* Improve file upload error handling by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1214
* Change the label of the edge from type to keyword by @choizhang in https://github.com/HKUDS/LightRAG/pull/1228
* Add customize title to WebUI @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1269
* Refactoring LIghtRAG Server setting dialogue by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1269

## Bugs fixed
* Added validation to prevent unnecessary keyword extraction when explicit keywords are provided by @OxidBurn in https://github.com/HKUDS/LightRAG/pull/1255
* Fix: auth_mode error in health check end point by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1201
* Fix: unknown filepath errors by @JoramMillenaar in https://github.com/HKUDS/LightRAG/pull/1243
* Fix citation by @LarFii in https://github.com/HKUDS/LightRAG/pull/1213
* Fix(postgres_impl): added file_path to queries by @Keviddle in https://github.com/HKUDS/LightRAG/pull/1268
* Fix search label display problem on graph view by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1278 https://github.com/HKUDS/LightRAG/pull/1279
* Fix: tooltip flickering problem by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1212
* Remove the comments at the end of the environment variable lines in .env file by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1225
* Fix guest login expiration problem by @danielaskdd in https://github.com/HKUDS/LightRAG/pull/1270

## New Contributors
* @omdivyatej made their first contribution in https://github.com/HKUDS/LightRAG/pull/1167
* @shane-lil made their first contribution in https://github.com/HKUDS/LightRAG/pull/1208
* @Keviddle made their first contribution in https://github.com/HKUDS/LightRAG/pull/1268
* @shmily1012 made their first contribution in https://github.com/HKUDS/LightRAG/pull/1258

**Full Changelog**: https://github.com/HKUDS/LightRAG/compare/v1.3.0...v1.3.1