Data as of Jul 25, 2026 · Based on 2,718,867 AI responses across 9,511 prompts · See how Parse measures this
semantic-chunking is an npm package that enables semantic chunking of large texts to support workflows with large language models. It supports multiple embedding backends (local ONNX models or OpenAI), dependency injection, configurable chunk sizes and similarity thresholds, and RAG-friendly features such as chunk prefixes and a Web UI. The workflow initializes a model once, splits text into sentences, embeds them, computes cosine similarities, forms and optionally rebalances chunks based on a threshold and max size, and outputs an array of chunk objects.
Parse Score