LightRAG/lightrag
yangdx bf9a6d699b Fix(lightrag): Handle undirected edges in data migration
The `_migrate_entity_relation_data` function previously processed directed edges from `get_all_edges`, which could lead to duplicates (e.g., (A,B) and (B,A)) and an incorrect relation count.

This commit normalizes edges by sorting their source and target nodes before adding them to the relation set. This ensures all edges are treated as undirected and are properly deduplicated.
2025-08-03 22:14:24 +08:00
..
api Removed auto storage management from LightRAG instance creation 2025-08-03 12:42:57 +08:00
kg feat: implement get_all_nodes and get_all_edges methods for graph storage backends 2025-08-03 11:02:37 +08:00
llm refactor: improve JSON parsing reliability with json-repair library 2025-08-01 19:36:20 +08:00
tools Revert "Cleanup of code" 2025-02-20 15:09:43 +01:00
__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 Fix(lightrag): Handle undirected edges in data migration 2025-08-03 22:14:24 +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 Add is_truncated to graph query for NetworkX graph db 2025-04-02 22:12:20 +08:00
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