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

# Preview Chunks

> Preview chunking results (for client-side debugging)

Preview text chunking results without actually storing them. Useful for real-time feedback when adjusting chunking parameters (chunk\_size, chunk\_overlap, etc.) on the client side.

<ParamField header="Authorization" type="string" required>
  Bearer JWT Token
</ParamField>

<ParamField body="content" type="string" required>
  Text content to preview
</ParamField>

<ParamField body="chunk_size" type="number" default="1000">
  Maximum number of characters per chunk
</ParamField>

<ParamField body="chunk_overlap" type="number" default="200">
  Number of overlapping characters between chunks
</ParamField>

<ParamField body="delimiter" type="string" default="\n\n">
  Chunk delimiter
</ParamField>

<ResponseField name="chunks" type="array">
  List of chunk previews

  <Expandable title="chunk object">
    <ResponseField name="index" type="number">
      Chunk index
    </ResponseField>

    <ResponseField name="content" type="string">
      Chunk text content
    </ResponseField>

    <ResponseField name="length" type="number">
      Chunk character count
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="total" type="number">
  Total number of chunks
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://zeus-api.agentspro.cn/api/knowledge-base/preview-chunks \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "content": "# Title\n\nFirst paragraph content...\n\nSecond paragraph content...\n\nThird paragraph content...",
      "chunk_size": 512,
      "chunk_overlap": 50,
      "delimiter": "\n\n"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "chunks": [
      {
        "index": 0,
        "content": "# Title\n\nFirst paragraph content...",
        "length": 34
      },
      {
        "index": 1,
        "content": "Second paragraph content...",
        "length": 27
      },
      {
        "index": 2,
        "content": "Third paragraph content...",
        "length": 26
      }
    ],
    "total": 3
  }
  ```
</ResponseExample>
