Commit graph

14 commits

Author SHA1 Message Date
yangdx
0d69bb78e6 Improve entity chunk migration with fallback and metadata refresh
• Handle missing chunk data gracefully
• Add fallback from source_id field
• Refresh timestamps on migration
• Support multiple chunk_ids formats
2025-10-26 09:31:48 +08:00
yangdx
c74eb3b8ad Refactor chunk_ids extraction logic for better readability
• Combine source_id split and filter logic
• Use conditional expressions consistently
• Remove intermediate source_ids variable
2025-10-26 02:17:51 +08:00
yangdx
7d92a756d9 Fix entity/relation chunk cleanup and self-loop handling
• Delete empty chunk entries
• Clean up self-loop chunk data
• Move storage key calculation
• Add proper logging messages
• Prevent stale chunk references
2025-10-26 01:56:08 +08:00
yangdx
568669ba90 Fix relation chunk merging to handle existing storage data
- Check storage for existing relations
- Merge chunks from all sources
- Prevent data loss during entity merge
- Update chunk counts and timestamps
2025-10-26 01:34:34 +08:00
yangdx
bf6cf54765 Add chunk tracking support to graph entity/relation operations
- Pass chunk storage to graph ops
- Update chunks on entity renames
- Track chunks in create operations
- Merge chunk data in entity merges
- Clean up orphaned chunk entries
2025-10-26 01:20:13 +08:00
Moddy Surala
319d12bb6a Fix GRAPH_FIELD_SEP import typo 2025-06-29 01:28:39 +05:00
yangdx
e6baffe10c Add retrun status to entity and relation delete operations 2025-06-23 21:39:45 +08:00
yangdx
1697ea4bf6 Fix linting 2025-06-23 19:20:35 +08:00
yangdx
f60bad92f0 Fix: Delete relations from vector DB in both directions 2025-06-23 19:20:10 +08:00
zrguo
40b10e8fcf Update insert_custom_kg 2025-05-27 16:07:04 +08:00
yangdx
90cacdbcc3 Fix file_path missing in acreate_entity and acreate_relation 2025-04-26 22:15:54 +08:00
yangdx
c834570cfc Fix import error 2025-04-14 12:36:41 +08:00
yangdx
5c1d4201f9 Fix linting 2025-04-14 12:08:56 +08:00
yangdx
89d1e68d97 Move graph edit function implemention to a utils_graph.py to educe the size of lightray.py 2025-04-14 03:06:23 +08:00