{"category":"text","endpoint":"https://setget.net/v1/tools/text-chunk","examples":[{"input":{"max_chars":40,"text":"First paragraph here.\n\nSecond paragraph is a little longer. It has two sentences."},"output":{"chunks":[{"end":21,"index":0,"start":0,"text":"First paragraph here."},{"end":59,"index":1,"start":23,"text":"Second paragraph is a little longer."},{"end":81,"index":2,"start":60,"text":"It has two sentences."}],"count":3}},{"input":{"max_chars":16,"overlap":6,"text":"alpha beta gamma delta epsilon zeta"},"output":{"chunks":[{"end":16,"index":0,"start":0,"text":"alpha beta gamma"},{"end":22,"index":1,"start":11,"text":"gamma delta"},{"end":30,"index":2,"start":17,"text":"delta epsilon"},{"end":35,"index":3,"start":31,"text":"zeta"}],"count":4},"title":"With overlap"}],"input_schema":{"additionalProperties":false,"properties":{"max_chars":{"default":1000,"description":"Longest chunk allowed, in characters.","maximum":1000000,"minimum":1,"type":"integer"},"overlap":{"default":0,"description":"Characters repeated from the end of one chunk at the start of the next. At most half of max_chars.","maximum":500000,"minimum":0,"type":"integer"},"text":{"description":"The text to split.","examples":["First paragraph here.\n\nSecond paragraph is a little longer. It has two sentences."],"type":"string"}},"required":["text"],"type":"object"},"keywords":["chunk text","text splitter","rag","embeddings","split text","chunking","retrieval","vector search","split document"],"related":["token-estimate","truncate-middle","wrap-indent"],"slug":"text-chunk","summary":"Split long text into chunks of a maximum size for search and RAG pipelines, breaking at natural boundaries.","tier":"inline","title":"Text chunker","url":"https://setget.net/tools/text-chunk"}
