Split plain text into overlapping chunks
One step with Sapling. We can help you get access.
Look something up
Split plain text into overlapping chunks
with Sapling
Use Sapling: its Sapling Files API lets you split plain text into overlapping chunks in a single step (POST /api/v1/ingest/chunk_text). capabilities.work can help you get signed up and connected.
- How do I break a long plain-text document into overlapping chunks under a character limit?
- Can I control how far each text chunk starts from the previous one?
- Is splitting plain text into chunks billed?
- Does the text chunker prefer sentence boundaries when it cuts?
Say it to your AI assistant
- Split the plain text {text} into chunks of at most {max_length} characters.
- Chunk the raw text {text} at {max_length} characters, advancing {step_size} characters between chunk starts.
- Chunk the plain text {text} into {max_length}-character pieces and return the billable character usage.
For your developer
POST /api/v1/ingest/chunk_text in Sapling Files API. Full spec on APIs.io.