95 Commits

Author SHA1 Message Date
yangdx
3e3338a144 Fix get_node error for PostgreSQL graph storage 2025-04-03 15:40:31 +08:00
yangdx
8878c0e998 Fix get_all_labels for PostgreSQL 2025-04-03 04:10:20 +08:00
yangdx
c339f8686a Add is_truncated to graph query for Neo4j 2025-04-02 23:20:07 +08:00
yangdx
82c4baba70 Add is_truncated to graph query for NetworkX graph db 2025-04-02 22:12:20 +08:00
yangdx
a50edffdb0 Optimize Neo4J subgraph query performance 2025-04-02 20:53:15 +08:00
yangdx
fb2fad7766 Update comments of get_knowledge_graph func for Noe4j 2025-04-02 17:02:01 +08:00
yangdx
c2f007199f Fix linting 2025-04-02 16:36:28 +08:00
yangdx
3ed7f11b4c Add index on entity_id for Neo4j 2025-04-02 16:36:02 +08:00
yangdx
4994bd1461 Simplified graph retrival by removing inclusive and min_degree parameters 2025-04-02 16:27:58 +08:00
yangdx
fc3208cf5b Filter nodes by :base for entity label retrieval in Neo4j 2025-04-02 12:53:17 +08:00
yangdx
c72c149e71 Fix linting 2025-04-02 12:16:40 +08:00
yangdx
cd67d7cd79 Removed redundant entity_id extraction in upsert logic for Neo4JStorage 2025-04-02 12:16:13 +08:00
yangdx
5f678adb71 Refactor Neo4J storage initialization and cleanup
- Make initialization async
- Rename close() to finalize()
2025-04-02 10:45:21 +08:00
yangdx
95a8ee27ed Fix linting 2025-03-31 23:22:27 +08:00
yangdx
1df4b777d7 Add drop funtions to storage implementations 2025-03-30 15:17:57 +08:00
yangdx
5b70d34822 Fix get single node subgrap problem
- Replaced MATCH with OPTIONAL MATCH
- Add memory-bank directory for Cline to .gitignore
2025-03-13 02:14:02 +08:00
yangdx
8f633c89fd Remove duplicate retry decorator in Neo4JStorage class. 2025-03-12 09:12:06 +08:00
yangdx
cbacb615f3 Use COALESCE to handle null degree counts in Neo4J queries.
- Ensures degree count defaults to 0
- Prevents null-related errors in queries
2025-03-11 18:33:26 +08:00
yangdx
30310c2845 Fix relation info in kownledge graph UI 2025-03-11 15:36:38 +08:00
yangdx
7fddabb441 Fix linting 2025-03-11 10:28:25 +08:00
yangdx
aefd596990 Refactor Neo4JStorage to use entity_id for node identification, use entity_type for node label 2025-03-11 09:59:42 +08:00
yangdx
c854aabde0 Add process ID to log messages for better multi-process debugging clarity
- Add PID to KV and Neo4j storage  logs
- Add PID to query context logs
- Improve KV data count logging for llm cache
2025-03-09 15:25:10 +08:00
yangdx
c5d0962872 Fix linting 2025-03-09 01:00:42 +08:00
yangdx
18c0770409 fix: duplicate nodes for same entity(label) problem in Neo4j
- Add entity_id field as key in Neo4j nodes
- Use  entity_id for nodes retrival and upsert
2025-03-09 00:24:55 +08:00
yangdx
fb4a4c736e Add duplicate edge upsert checking and logging 2025-03-08 11:36:24 +08:00
yangdx
22a93fb717 Limit neighbor nodes fetch to 1000 in Neo4JStorage. 2025-03-08 11:29:08 +08:00
yangdx
887f6ed81a Fix return empty list when no edges is found 2025-03-08 11:20:22 +08:00
yangdx
af26d65698 Convert _ensure_label method from async to sync 2025-03-08 10:23:27 +08:00
yangdx
78f8d7a1ce Convert node and edge IDs to f-strings for consistency.
- Use f-strings for node IDs
- Use f-strings for edge IDs
- Ensure consistent ID formatting
2025-03-08 10:20:10 +08:00
yangdx
84222b8b76 Refactor Neo4JStorage methods for robustness and clarity.
- Add error handling and resource cleanup
- Improve method documentation
- Optimize result consumption
2025-03-08 10:19:20 +08:00
yangdx
fcb04e47e5 Refactor Neo4J APOC fall back retrival implementaion 2025-03-08 04:28:54 +08:00
yangdx
c07b592e1b Add missing await consume 2025-03-08 02:39:51 +08:00
yangdx
af803f4e7a Refactor Neo4J graph query with min_degree an inclusive match support 2025-03-08 01:20:36 +08:00
yangdx
0ee2e7fd48 Suppress Neo4j warning logs by setting logger level. 2025-03-07 16:56:48 +08:00
yangdx
6e3b23069c - Remove useless _label_exists method 2025-03-07 16:43:18 +08:00
zrguo
0679ca4055 Update neo4j_impl.py 2025-03-04 14:20:55 +08:00
yangdx
465737efed Fix linting 2025-03-02 17:32:25 +08:00
yangdx
68bf02abb6 refactor: improve graph querying with label substring matching and security fixes 2025-03-02 16:20:37 +08:00
yangdx
0f1eb42c8d Add node limit and prioritization for knowledge graph retrieval
• Add MAX_GRAPH_NODES limit from env var
• Prioritize nodes by label match & connection
2025-03-02 15:39:14 +08:00
zrguo
4219454fab fix format 2025-03-01 17:45:06 +08:00
Yannick Stephan
678e0f9aea
Revert "Cleanup of code" 2025-02-20 15:09:43 +01:00
Yannick Stephan
439685e69c
Revert "removed get_knowledge_graph" 2025-02-20 14:29:36 +01:00
Yannick Stephan
cedb5f3975
Merge pull request #886 from YanSte/clean-2
removed get_knowledge_graph
2025-02-19 22:59:10 +01:00
Yannick Stephan
89c35c82c7 removed get_knowledge_graph 2025-02-19 22:57:46 +01:00
Yannick Stephan
4978379b9c
Merge pull request #885 from YanSte/remove-unsused
Cleanup of code
2025-02-19 22:54:58 +01:00
Yannick Stephan
eb3306f34c cleanup 2025-02-19 22:52:49 +01:00
Saifeddine ALOUI
52abf9cc50
Removed useless try/except 2025-02-19 19:32:23 +01:00
Yannick Stephan
05147f4799 improved code of postgress and execution 2025-02-19 13:31:30 +01:00
ultrageopro
6bfe34b952 Merge remote-tracking branch 'upstream/main' 2025-02-17 21:00:52 +03:00
ultrageopro
9f2689551f
fix: .get 2025-02-17 20:54:08 +03:00