# 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="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2F6gMLcTjGp6PY0rLc73oT%2Fimage.png?alt=media&#x26;token=35b2ef08-28b2-4c78-9838-027a63c44953" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FlGGti7GxrosRcazTWqyv%2Fimage.png?alt=media&#x26;token=d1ac398d-59e6-42a1-a2a5-23474de4a5ea" 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="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FfvfhISpVfC11SkYCSjCd%2Fimage.png?alt=media&#x26;token=4f80edfd-2de9-4246-b4a8-d3d4440fd49a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2F3FESq0eza38sKrVYXYni%2Fimage.png?alt=media&#x26;token=56bf3db8-8035-4946-8e03-776032a52e1e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2F0DysGHRXUtf2Gl0ZjQzQ%2Fimage.png?alt=media&#x26;token=55fbcafb-552b-43a6-9f04-644ce0a26cce" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2Fg3PmNTGhhOtFlJcq4BQ4%2Fimage.png?alt=media&#x26;token=20c81751-af02-4ad4-913d-1fc1f35e3938" 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="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FNyi6ctRSvPk4wn9QB6zC%2Fimage.png?alt=media&#x26;token=6e0776f0-8b41-42e3-8184-a7c75dcb8f79" 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="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FNxWEGAcaoPZlyRWQlXdu%2Fimage.png?alt=media&#x26;token=622aa735-5a47-4452-9dc2-e7bb13dfc9c6" 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="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2F7gNjXrZGnja5sOAVSsC6%2Fimage.png?alt=media&#x26;token=590337f7-0480-4926-af1a-b820b4bf596f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FHT5vasCiHMJqPowF9uO6%2Fimage.png?alt=media&#x26;token=c438a778-c57a-4c78-9b6d-68c37f0141b3" 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="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FRFmix9UKcTA3jaJS8ICf%2Fimage.png?alt=media&#x26;token=f145079e-5891-4ff8-9635-c91c0aebe39d" 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="https://3781630280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbuSicczDKTyHzwzicar%2Fuploads%2FQ1ZSKYLJR8aAcTmBHNDT%2Fimage.png?alt=media&#x26;token=68d8f0d7-6214-46bc-9ec6-a5083dbf7c17" alt=""><figcaption></figcaption></figure>
