Request
Parameters
Array of chunk objects to add overlap to. Must be in sequential order from the
same document.
Tokenizer to use for measuring overlap.
Context size as fraction or token count. Can be a float (0.0-1.0) representing
a fraction of chunk size, or an integer representing exact token count.
Mode for overlap. Options: “token” or “recursive”.
Method for adding context. Options: “suffix” (add context after chunk) or
“prefix” (add context before chunk).
Recipe name for recursive mode. Used when mode is set to “recursive”.
Language for recipe in recursive mode.
Whether to merge overlapping chunks.
Response
Returns
Array of chunks with added overlapping context.The chunk text with added overlap.
Updated starting position reflecting overlap.
Updated ending position reflecting overlap.
Updated token count including overlap.
