> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/llm-projects/knowledge-base/chunk-editor.md).

# Chunk Editor

## Overview

Chunk editor in knowledge base provides you with granular control over each chunk of text extracted from your files. You can modify, split, insert, or delete chunks directly, helping you refine the information used in your Retrieval-Augmented Generation (RAG) systems. This leads to responses that are more accurate, relevant, and context-aware.

## Get started

1. Navigate to the **Knowledge base** page and open an existing one.
2. Expand the **Chunks** section from the sidebar on the right.

   <figure><img src="/files/PcJPlorgNapzw6AEkOV4" alt=""><figcaption></figcaption></figure>
3. Once the **Chunks** section is opened, you can do the following for each chunk:

   1. **Split chunk**: Divide the current chunk into two at the cursor position.
   2. **Edit chunk**: Modify the content of the current chunk.
   3. **Insert chunk above**: Add a new chunk above the current one.
   4. **Insert chunk below**: Add a new chunk below the current one.
   5. **Delete chunk**: Delete the current chunk. By deleting the chunk, that part will no longer be used for RAG.

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

{% hint style="info" %}
You can also **double-click** a chunk to make changes, or **right-click** to view available actions and options.
{% endhint %}

6. You can also see the metadata of the chunk by opening the **Metadata** section.

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