Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lightrag committed Mar 4, 2025
1 parent 23106b8 commit 0f430ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,8 @@ rag.delete_by_doc_id("doc_id")

LightRAG now supports comprehensive knowledge graph management capabilities, allowing you to create, edit, and delete entities and relationships within your knowledge graph.

### Create Entities and Relations
<details>
<summary> <b>Create Entities and Relations</b> </summary>

```python
# Create new entity
Expand All @@ -807,8 +808,10 @@ relation = rag.create_relation("Google", "Gmail", {
"weight": 2.0
})
```
</details>

### Edit Entities and Relations
<details>
<summary> <b>Edit Entities and Relations</b> </summary>

```python
# Edit an existing entity
Expand All @@ -830,6 +833,7 @@ updated_relation = rag.edit_relation("Google", "Google Mail", {
"weight": 3.0
})
```
</details>

All operations are available in both synchronous and asynchronous versions. The asynchronous versions have the prefix "a" (e.g., `acreate_entity`, `aedit_relation`).

Expand Down

0 comments on commit 0f430ca

Please sign in to comment.