> 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.datasaur.ai/llm-projects/knowledge-base/chunk-editor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
