yangdx
86c9a0cda2
Fix linting
2025-07-02 16:29:43 +08:00
yangdx
271722405f
feat: Flatten LLM cache structure for improved recall efficiency
...
Refactored the LLM cache to a flat Key-Value (KV) structure, replacing the previous nested format. The old structure used the 'mode' as a key and stored specific cache content as JSON nested under it. This change significantly enhances cache recall efficiency.
2025-07-02 16:11:53 +08:00
yangdx
37bf341a69
Fix LLM cache handling for PGKVStorage to address document deletion scenarios.
...
- Add dynamic cache_type field
- Support mode parameter for LLM cache
- Maintain backward compatibility
2025-06-29 14:39:50 +08:00
yangdx
b7f8c20e61
fix(postgres): use correct table for vector queries
...
Change SQL templates from LIGHTRAG_DOC_CHUNKS to LIGHTRAG_VDB_CHUNKS
to fix "content_vector does not exist" error in vector operations.
2025-06-28 15:36:54 +08:00
yangdx
2c47367975
Fix linting
2025-06-28 14:37:55 +08:00
yangdx
95c7a7d038
feat(db): Add data migration from LIGHTRAG_DOC_CHUNKS to LIGHTRAG_VDB_CHUNKS
2025-06-28 14:37:47 +08:00
yangdx
3a8a99b73d
feat(postgres): Implement text_chunks upsert for PGKVStorage
2025-06-28 14:37:35 +08:00
yangdx
72384f87c4
Remove deprecated code from Postgres_impl.py
...
- Stop filtering out 'base' node labels
- Match any edge type in query to improve performance
2025-06-25 12:53:07 +08:00
yangdx
109c2b48be
Fix linting
2025-06-25 12:39:43 +08:00
yangdx
da46b341dc
feat: Optimize document deletion performance
...
- To enhance performance during document deletion, new batch-get methods, `get_nodes_by_chunk_ids` and `get_edges_by_chunk_ids`, have been added to the graph storage layer (`BaseGraphStorage` and its implementations). The [`adelete_by_doc_id`](lightrag/lightrag.py:1681) function now leverages these methods to avoid unnecessary iteration over the entire knowledge graph, significantly improving efficiency.
- Graph storage updated: Networkx, Neo4j, Postgres AGE
2025-06-25 12:37:57 +08:00
yangdx
cc12460b38
Fix: Silence PostgreSQL logs during idempotent graph initialization
2025-06-23 23:08:56 +08:00
zrguo
4937de8809
Update
2025-06-22 15:12:09 +08:00
yangdx
ada2443653
Optimize default setting of PostgreSQL
2025-05-22 17:09:26 +08:00
yangdx
2ee809cf58
Increase PG connection pool to 20
2025-05-22 16:37:18 +08:00
yangdx
ebdc7cea49
Merge branch 'allow_max_connection_config' into pg-max-connection
2025-05-09 14:16:53 +08:00
Arjun Rao
6ebd76d5da
bugfix: convert config val to int
2025-05-09 04:22:46 +10:00
Arjun Rao
f2c522ce7a
Allow max_connections to be configured in postgres
2025-05-08 11:00:56 +10:00
widgit
e070c19414
Update postgres_impl.py
...
Was missing , on the SQL Table create command
2025-05-05 23:55:19 +10:00
yangdx
e46a4b2079
Optimize log message
2025-05-04 22:31:57 +08:00
yangdx
9a41de51fb
Optimize log message
2025-05-04 22:20:44 +08:00
yangdx
dcb2a72462
Fix JSON handling error for PostgreSQL graph storage
2025-05-04 22:18:56 +08:00
yangdx
1213f53fc9
Fix mistakenly interpreting a string as JSON for PostgreSQL AGE graph storage
2025-05-04 02:20:43 +08:00
yangdx
045993f7d2
Remove deprecated search_by_prefix
2025-05-03 11:17:49 +08:00
yangdx
81071df982
Fix timezone bugs for PostgreSQL vector storage
2025-05-03 00:44:55 +08:00
yangdx
1b049b4214
Fix time handling bugs for PostgreSQL
2025-05-01 15:13:42 +08:00
yangdx
36f8787bc7
Fix linting
2025-05-01 10:04:31 +08:00
yangdx
950d42c527
Store utc time in PostgreSQL
2025-05-01 10:04:17 +08:00
yangdx
ca63386546
Increase embeding priority for query request
2025-04-28 20:10:39 +08:00
yangdx
90cacdbcc3
Fix file_path missing in acreate_entity and acreate_relation
2025-04-26 22:15:54 +08:00
yangdx
04ebcbebd0
Translate comments to English
2025-04-25 21:54:04 +08:00
yangdx
5eb019a7fc
Fix max_nodes not working in graph queries when using the '*' wildcard.
2025-04-25 21:25:37 +08:00
yangdx
e3c87dd6bd
Improve graph query speed by batch operation
2025-04-25 16:55:47 +08:00
yangdx
5ca430adcd
Fix graph query problem of PostgresSQL AGE
2025-04-25 16:04:41 +08:00
yangdx
f595834c60
Fix index creating bugs for PostgreSQL AGE graph storage
2025-04-24 17:59:34 +08:00
yangdx
11681fdd6b
Improve PostgreSQL AGE graph query by write a customized BFS implementation
2025-04-24 12:27:12 +08:00
yangdx
8d219ffa32
Fix: upsert_edge funtion can not create properties with PostgreSQL AGE storage
2025-04-24 11:09:34 +08:00
yangdx
ffbe2a0c5d
Fix get_knowledge_graph query slow problem for PostgreSQL AGE
2025-04-24 08:40:06 +08:00
yangdx
e19d5fa9be
Add index to PostgreSQL AGE graph storage
2025-04-24 01:41:33 +08:00
widgit
439201face
Update postgres_impl.py
...
fix get_all_labels error
2025-04-22 19:49:31 +10:00
Mykola Chaban
50822dce52
updated field type
2025-04-21 21:26:57 +03:00
Mykola Chaban
77b53486ea
use a single parameter placeholder for the array;
2025-04-21 21:20:21 +03:00
yangdx
8938d11718
Fix PostgreSQL get_by_mode_and_id bugs
2025-04-22 00:26:16 +08:00
yangdx
8b0c6701a0
Merge branch 'zd_dev'
2025-04-18 17:00:41 +08:00
yangdx
a3ca134e97
Fix special chars problem for Postgres
2025-04-17 22:58:36 +08:00
朱 东
bdaea6e67c
feat: PGKVStorage add get_all()
2025-04-17 11:17:01 +08:00
yangdx
d74549afb5
Fix linting
2025-04-17 02:32:32 +08:00
yangdx
70d1eab9e7
fix: add node_id normalization to handle backslash escaping in PostgreSQL Cypher queries
2025-04-17 02:31:56 +08:00
yangdx
d4c4a40c53
Fix M.env AX_GRAPH_NODES not working problem
2025-04-17 01:28:22 +08:00
yangdx
0afe35a9fd
Convert parallel queries to serial execution
2025-04-16 17:55:49 +08:00
yangdx
5b611b0b59
Merge branch 'superhuahua/main' into graph-storage-batch-query
2025-04-16 15:05:37 +08:00