LightRAG/lightrag
yangdx 091f2b42c3 feat(performance): Optimize document deletion with entity/relation index
- Introduces an index mapping documents to their corresponding entities and relations. This significantly speeds up `adelete_by_doc_id` by replacing slow graph traversal with a fast key-value lookup.
- Refactors the ingestion pipeline (`merge_nodes_and_edges`) to populate this new index. Adds a one-time data migration script to backfill the index for existing data.
2025-08-03 09:19:02 +08:00
..
api Add graceful shutdown handling for LightRAG server 2025-08-01 10:56:18 +08:00
kg feat(performance): Optimize document deletion with entity/relation index 2025-08-03 09:19:02 +08:00
llm refactor: improve JSON parsing reliability with json-repair library 2025-08-01 19:36:20 +08:00
tools
__init__.py Bump core version to v1.4.6 and api version to 0196 2025-07-31 23:27:31 +08:00
base.py feat(performance): Optimize document deletion with entity/relation index 2025-08-03 09:19:02 +08:00
constants.py Set the default LLM temperature to 1.0 and centralize constant management 2025-07-31 17:15:10 +08:00
exceptions.py
lightrag.py feat(performance): Optimize document deletion with entity/relation index 2025-08-03 09:19:02 +08:00
llm.py
namespace.py feat(performance): Optimize document deletion with entity/relation index 2025-08-03 09:19:02 +08:00
operate.py feat(performance): Optimize document deletion with entity/relation index 2025-08-03 09:19:02 +08:00
prompt.py Unify entity extraction prompt between passes 2025-07-27 23:06:55 +08:00
rerank.py Fix: rename rerank parameter from top_k to top_n 2025-07-20 00:26:27 +08:00
types.py
utils.py refactor: improve JSON parsing reliability with json-repair library 2025-08-01 19:36:20 +08:00
utils_graph.py Fix GRAPH_FIELD_SEP import typo 2025-06-29 01:28:39 +05:00