Processed online by Toolvito
Semantic Chunking Tool
Split a long text into chunks that each keep to one subject. Every sentence is turned into a meaning vector, and a chunk ends where the meaning changes most.
How to split by meaning
- Paste the text, or choose documents (PDF, Word, Markdown, HTML, OpenDocument, EPUB or text).
- Choose the model: English (all-MiniLM-L6-v2) or 50+ languages (paraphrase-multilingual-MiniLM-L12-v2).
- Set the largest and smallest chunk size and the split sensitivity.
- Press Split into chunks and download the chunks as JSONL, JSON, CSV or Markdown.
How the split points are found
- The text is cut into sentences. Each sentence gets a meaning vector from the model, on the Toolvito server.
- At each gap between sentences, the average meaning of up to three sentences before it is compared with up to three sentences after it. One odd sentence does not make a split; a change of subject does.
- A gap becomes a split point when its distance is a local peak and higher than the chosen percentile of all gaps (90 means: only the top 10% of changes).
- Headings always start a new chunk. Chunks are kept under the largest size; chunks under the smallest size join the one before them.
- The result says how many sentences were read, the distance that was used and the model name.
Good to know
- Meaning vectors find changes of topic, not changes of argument within one topic. Check the chunks before you index them.
- Fast fixed windows or heading-based chunks are on the Document Chunker page (the same tool).
- Sizes are counted with the MiniLM tokenizers (or in words or characters); other AI models count tokens differently.