Commit graph

2485 commits

Author SHA1 Message Date
yangdx
bdcd55a871 Feat: Add delete upload file option to document deletion 2025-06-25 19:02:46 +08:00
yangdx
6a1737784d Bump api version to 0176 2025-06-25 17:17:56 +08:00
yangdx
f440461810 Update webui assets 2025-06-25 17:16:59 +08:00
yangdx
51bb0471cd Change the API for deleting documents to support deleting multiple documents at once. 2025-06-25 16:19:49 +08:00
yangdx
495d6c8cce Improve the pipeline status message for document deletetion 2025-06-25 15:46:58 +08:00
yangdx
2aaa6d5f7d Fix linting 2025-06-25 14:59:45 +08:00
yangdx
49baeb7318 Change document deletion API to async 2025-06-25 14:59:10 +08:00
yangdx
8a365533d7 Add comprehensive error handling for document deletion 2025-06-25 14:58:41 +08:00
yangdx
922484915b Remove deprecated API endpoint. 2025-06-25 13:55:47 +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
492269ac44 Bump core version to 1.3.10 2025-06-25 12:39:57 +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
ebe5b1e0d2 Bump api version to 0175 2025-06-24 22:16:06 +08:00
yangdx
2946bbdb71 Add TODO: There is performance when iterating get_all_labels 2025-06-24 11:32:28 +08:00
yangdx
8b6dcfb6eb Pls do not use /delete_document API endpoint 2025-06-24 11:26:38 +08:00
yangdx
5ae945c1e5 Improved error handling for document deletion
Added HTTPException for not_found status
Added HTTPException for fail status
2025-06-24 01:12:25 +08:00
yangdx
fd69c895cd Remove debug looging from Neo4j 2025-06-24 01:03:02 +08:00
yangdx
64d0df0caa Remove debug logging from Neo4J operations
- Delete node upsert debug log
- Remove edge upsert debug messages
2025-06-24 00:45:17 +08:00
yangdx
cc12460b38 Fix: Silence PostgreSQL logs during idempotent graph initialization 2025-06-23 23:08:56 +08:00
yangdx
c18065a912 Disable document deletion when LLM cache for extraction is off 2025-06-23 22:41:27 +08:00
yangdx
1973c80dca Feat: Add entity and relation deletion endpoints 2025-06-23 22:14:50 +08:00
yangdx
e6baffe10c Add retrun status to entity and relation delete operations 2025-06-23 21:39:45 +08:00
yangdx
bd487dd252 Unify document APIs returen status string 2025-06-23 21:38:47 +08:00
yangdx
ce50135efb Improved docstring for document deletion method 2025-06-23 21:08:51 +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
yangdx
ebcabe29ca Remove duplicated graph db lock 2025-06-23 18:46:01 +08:00
yangdx
b8a2d5b223 Bump api version to 0174 2025-06-23 18:42:34 +08:00
yangdx
5099ac8213 Fix linting 2025-06-23 18:41:30 +08:00
yangdx
a215939c41 Refac: Avoid duplicate edge processing in adelete_by_doc_id 2025-06-23 18:39:36 +08:00
yangdx
dffe659388 Feat: Add document deletion by ID API endpoint
- New DELETE endpoint for document removal
- Implements doc_id-based deletion
- Handles pipeline status during operation
- Includes proper error handling
- Updates pipeline status messages
2025-06-23 18:10:40 +08:00
yangdx
a0be65d5d9 Refac: Return status and messages for delete by doc id operaton 2025-06-23 17:59:27 +08:00
yangdx
9fae0eadff feat: Ensure thread safety for graph write operations
Add a lock to delete, adelete_by_entity, and adelete_by_relation methods to prevent race conditions and ensure data consistency during concurrent modifications to the knowledge graph.
2025-06-23 09:57:56 +08:00
zrguo
4937de8809 Update 2025-06-22 15:12:09 +08:00
zrguo
afdc2b3da8 Merge branch 'main' into delete_doc 2025-06-22 14:39:07 +08:00
zrguo
96b9bd8cc5 fix lint 2025-06-19 14:16:24 +08:00
zrguo
523550d9ba
Merge pull request #1643 from eddiemaru-101/fix/ollama-timeout-handling
Fix: Increase Ollama timeout values to prevent ReadTimeout errors
2025-06-19 14:15:05 +08:00
zrguo
c8b56620c1 Merge branch 'main' into delete_doc 2025-06-19 14:12:17 +08:00
zrguo
03dd99912d RAG-Anything Integration 2025-06-17 01:16:02 +08:00
zrguo
3abdc42549 Merge branch 'main' into delete_doc 2025-06-16 17:02:21 +08:00
yangdx
1389265695 Bump api version to 1.3.9 2025-06-11 17:03:27 +08:00
yangdx
62621979f0 Bump api version to 0173 2025-06-11 16:37:52 +08:00
yangdx
888be97b06 Fix linting 2025-06-11 16:36:05 +08:00
yangdx
ba5e95ea9e Merge branch 'main' into litellm-problem 2025-06-11 16:27:32 +08:00
yangdx
c3f5c413fa feat(api): add /ps endpoint to list running models for Ollama API 2025-06-11 16:23:02 +08:00
yangdx
9351b09cc7 Enhance Ollama interface compatibility 2025-06-11 15:16:32 +08:00
yangdx
7b07d4c917 feat: 支持 LiteLLM 客户端的 application/octet-stream 请求
修改 Ollama API 路由处理程序,使 /chat 和 /generate 端点能够接受 Content-Type 为 application/octet-stream 的请求。通过绕过 FastAPI 的自动请求验证机制,手动解析请求体,解决了 LiteLLM 客户端连接时出现的 422 错误。此更改保持了对现有 application/json 请求的向后兼容性。
2025-06-11 13:42:30 +08:00
yangdx
ad81e59d9a Fix logger problem 2025-06-11 13:30:45 +08:00
kwilt
09cbcc4572 fix typo: "extrat" -> extract 2025-06-09 08:28:14 -05:00