Go to example tasks
RAG Text Chunker (Markdown to Chunks, Token Counts)
Split Markdown or text into RAG-ready chunks with exact OpenAI token counts (o200k/cl100k): heading-aware, code blocks kept whole, sentence-boundary overlap, heading path on every chunk. Chunks any dataset from Website to Markdown, PDF to Markdown or your own texts.
RAG Text Chunker (Markdown to Chunks, Token Counts)webdatatools/rag-text-chunker
Document
#
Section
Tokens
+1 fieldTextNumberBooleanListObject
Input
Texts:# Guide
First section text.
## Details
More text here.
Chunk size (tokens):500
Overlap (tokens):50
Tokenizer:o200k_base
Start a chunk at each section:true
Section heading level:2
Heading path in chunk text:true
Output fields
Document
#
Section
Tokens
Text
Sign up on Apify01
Create your Apify account to access the RAG Text Chunker (Markdown to Chunks, Token Counts).
Start the run02
The Actor will start running based on the input automatically.
Receive the output03
Monitor the progress in real-time. You will be notified as soon as your dataset is complete and ready for review.
Integrate into your workflow04
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow.
