# How to update the existing knowledge base created with a knowledge graph?

You can update the existing knowledge base created with the knowledge graph as an RAG definition by adding a chunk to it.

* Select the existing knowledge base created using a knowledge graph.
* Click on the knowledge base file name.

<figure><img src="/files/Y8pgWFprOOvw4JV95u1B" alt=""><figcaption></figcaption></figure>

* Click ‘+Add Chunk' and provide the chunk details in the box, and click on 'Save’.

<figure><img src="/files/5qg19SpnzKEwBN378GVn" alt=""><figcaption></figcaption></figure>

* You can also update the existing chunk. Click the ‘pencil' icon at the rightmost corner and edit the chunk, and click 'Save’.

<figure><img src="/files/7vnU7Bf5DSL4lcJcMi2b" alt=""><figcaption></figcaption></figure>

* Once you edit or add a chunk, you can track the status in the dashboard.

<figure><img src="/files/iyadZovynBKHqhYZuvd7" alt=""><figcaption></figcaption></figure>

* The chunk is saved immediately and becomes part of the existing knowledge base.

<figure><img src="/files/saGUbYi8eKlMxUKWzVOm" alt=""><figcaption></figcaption></figure>

* You can find the updated knowledge graph, which now includes the new entity.

<figure><img src="/files/0CqUQr58mYcM0rUaj0Zt" alt=""><figcaption></figcaption></figure>

### Managing within a knowledge graph <a href="#managing-within-a-knowledge-graph" id="managing-within-a-knowledge-graph"></a>

You can modify the details of existing nodes to ensure the information remains current and accurate. Unnecessary or outdated nodes can be removed from the graph. When deleting nodes, only the selected node and its direct relations are removed, while the rest of the graph remains intact. This functionality enables efficient updates and maintenance of the knowledge graph.

**Editing a node**

* You can update node properties such as name and description with changes reflected immediately.
* Click on the particular node you want to update.
* A right-side panel will open with Node Details.

<figure><img src="/files/tAz4NxJCYHPQyltARZ9h" alt=""><figcaption></figcaption></figure>

* Click the pencil icon on ‘Name’ or ‘Description’, and a pop-up will open. Edit the details in the 'Edit Description' box and click 'Save'.

<figure><img src="/files/st0EfD9GaIBBxiabzVM2" alt=""><figcaption></figcaption></figure>

**Deleting a node**

* Select the node you want to delete.
* A right-side panel with Node Details will open. Click the 'Delete Node' button.

<figure><img src="/files/UifxxqVcmlfdpxeWjL70" alt=""><figcaption></figcaption></figure>

* A pop-up will appear that requires typing DELETE to confirm the deletion.

<figure><img src="/files/7CJQgyH3j3fnfVkqqCjD" alt=""><figcaption></figcaption></figure>

* Once you type DELETE and click ‘Confirm’, the node will be deleted permanently.

#### **Updating metadata** <a href="#updating-metadata" id="updating-metadata"></a>

* Select the appropriate option from the ‘Document Type’ dropdown, edit the metadata, and click ‘Save’ on the right-side panel titled ‘Document Metadata’

<figure><img src="/files/DWVYgQZQ83TKy9RcwQ4j" alt=""><figcaption></figcaption></figure>

* Once you save the updated metadata, it will be applied to all chunks. Click on any chunk to view the updated metadata.

<figure><img src="/files/5pAZnu9Z0adMj6FpWUa7" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zbrain.ai/zbrain-documentation/zbrain-builder/knowledge-base/how-to-create-a-knowledge-base/data-refinement-tuning/how-to-create-a-knowledge-base-using-knowledge-graph/how-to-update-the-existing-knowledge-base-created-with-a-knowledge-graph.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
