Catalog/rag-fixed-window-chunk

Retrieval

Fixed-window char chunking API

Splits text into fixed-size character windows with a configurable stride/overlap and deterministic offsets. Answers 'How do I chunk text into fixed windows with stride?', 'What are the sliding-window character chunks?'.

Price$0.02per request
MethodPOST
Route/v1/retrieval/fixed-window-chunk
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
chunkfixed-windowstridesliding-windowsplitragcharacteringestion
API URLhttps://x402.hexl.dev/v1/retrieval/fixed-window-chunk
Integration docs
Example request
{
  "text": "abcdefghij",
  "windowChars": 4,
  "stride": 3
}
Example response
{
  "windowChars": 4,
  "stride": 3,
  "overlap": 1,
  "totalChars": 10,
  "chunkCount": 3,
  "chunks": [
    {
      "index": 0,
      "text": "abcd",
      "start": 0,
      "end": 4
    },
    {
      "index": 1,
      "text": "defg",
      "start": 3,
      "end": 7
    },
    {
      "index": 2,
      "text": "ghij",
      "start": 6,
      "end": 10
    }
  ]
}
Input schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string"
    },
    "windowChars": {
      "type": "integer"
    },
    "stride": {
      "type": "integer"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}