2 Repositories
Rust chunk Libraries
Extension trait to chunk iterators into const-length arrays.
const-chunks This crate provides an extension trait that lets you chunk iterators into constant-length arrays using const generics. See the docs for m
6 Jun 12, 2023
Split text into semantic chunks, up to a desired chunk size. Supports calculating length by characters and tokens
Large language models (LLMs) can be used for many tasks, but often have a limited context size that can be smaller than documents you might want to use. To use documents of larger length, you often have to split your text into chunks to fit within this context size.
4 May 8, 2023