> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getmetal.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Chunking Configuration

> How to configure chunking for your indexes

## What is Chunking?

Chunking breaks documents into smaller sections when they are indexed.
This process not only enhances the performance of retrieval engines but also
allows for more efficient searches within concise text. Additionally, it overcomes
token size restrictions in language models. Given that these models have a set token
limit for each input, dividing the text ensures it stays within this constraint.

## How to Configure Chunking?

Create an Index and select the `Chunking` options:

<img src="https://mintcdn.com/metal/JlNJrP-9OzWcypuS/images/chunking-01.png?fit=max&auto=format&n=JlNJrP-9OzWcypuS&q=85&s=09cf6cc2389ad30f2f1cdecbc5ff4d69" alt="Chunk Configuration" width="395" height="155" data-path="images/chunking-01.png" />

Chunk configuration is composed of two parameters:

* Chunk Size: The maximum number of tokens per chunk.
* Overlap Size: The number of tokens that overlap between chunks. This is useful for
  ensuring that the context of the chunk is preserved. We suggest beginning with an overlap that's roughly 10% of the chunk size.
