LightRAG/lightrag
NeelM0906 9f44e89de7 Add knowledge graph manipulation endpoints
Added three new REST API endpoints for direct knowledge graph manipulation:

- POST /graph/entity/create: Create new entities in the knowledge graph
- POST /graph/relation/create: Create relationships between entities
- POST /graph/entities/merge: Merge duplicate/misspelled entities while preserving relationships

The merge endpoint is particularly useful for consolidating entities discovered after document processing, fixing spelling errors, and cleaning up the knowledge graph. All relationships from source entities are transferred to the target entity, with intelligent handling of duplicate relationships.

Updated API documentation in lightrag/api/README.md with usage examples for all three endpoints.
2025-10-08 15:59:47 -04:00
..
api Add knowledge graph manipulation endpoints 2025-10-08 15:59:47 -04:00
kg Fix graph truncation logic for depth-limited traversals 2025-09-24 18:03:11 +08:00
llm Fix linting 2025-10-03 02:10:02 +08:00
tools Fix linting 2025-08-23 02:39:12 +08:00
__init__.py Bump core version to 1.4.9.1 2025-09-28 15:25:02 +08:00
base.py Fix documentation for user_prompt parameter in QueryParam 2025-09-27 23:41:17 +08:00
constants.py Remove deprecated history_turns and ids parameters from query API endpoint 2025-09-25 04:58:57 +08:00
exceptions.py Rename allow_create to first_initialization for clarity 2025-08-23 02:34:39 +08:00
lightrag.py Fix mode parameter serialization error in Ollama chat API 2025-09-27 15:11:51 +08:00
namespace.py
operate.py Simplify reference formatting in LLM context generation 2025-10-01 22:20:58 +08:00
prompt.py Remove bold formatting from instruction headers in prompts 2025-10-02 00:58:03 +08:00
rerank.py fix: Resolve default rerank config problem when env var missing 2025-08-23 01:07:59 +08:00
types.py
utils.py Fix logging filter logic 2025-09-26 19:42:33 +08:00
utils_graph.py