---
title: "SDPM Chunker"
method: POST
path: "/v1/chunk/sdpm"
---

# SDPM Chunker

`POST /v1/chunk/sdpm`

Extends semantic chunking using a double-pass merging approach (Semantic Double-Pass Merging). Connects related content even if not consecutive.

## Response `200`

Successful Response: A list of `SemanticChunk` objects.

- SemanticChunkSchema[] — A list containing `SemanticChunk` objects (as SDPM uses semantic chunking), detailing segments and sentences with optional embeddings.
  - `text` string — The actual text content of the chunk.
  - `start_index` integer — The starting character index of the chunk within the original input text.
  - `end_index` integer — The ending character index (exclusive) of the chunk within the original input text.
  - `token_count` integer — The number of tokens in this specific chunk, according to the tokenizer used.
  - `sentences` SemanticSentenceSchema[] — List of `SemanticSentence` objects contained within this chunk.
    - `text` string — The actual text content of the sentence.
    - `start_index` integer — The starting character index of the sentence within the original input text.
    - `end_index` integer — The ending character index (exclusive) of the sentence within the original input text.
    - `token_count` integer — The number of tokens in this specific sentence, according to the tokenizer used.
    - `embedding` number[], nullable — Optional embedding vector (list of floats) for the sentence.

## Changes

- **2025-04-29** `e12d0b1f23dc` — 1 warning, 1 info
  - removed the request property `skip_window`
  - added the new optional request property `include_delim`
- **2025-04-27** `bc64e1775952` — 1 info
  - endpoint added
- **2025-04-27** `5c8e44804806` — 1 breaking
  - api removed without deprecation
- **2025-04-27** `1762a3ecb81b` — 2 info
  - the `delim` request property default value changed from ` , ., !, ?` to `., !, ?, `
  - the `min_characters_per_sentence` request property default value changed from `1` to `12`
- **2025-04-27** `7e3cb743a9ed` — 1 warning
  - removed the request property `text`

[Full history](https://skmtc.dev/feyninc/apis/chonkie-api/changes/v1/chunk/sdpm/post.md)

---

[API](https://skmtc.dev/feyninc/apis/chonkie-api.md) · [All operations](https://skmtc.dev/feyninc/apis/chonkie-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/feyninc/chonkie-api/revisions/8a6665f478db/schema)
