Skip to main content
FixedSizeChunking splits document text into chunks of at most chunk_size characters and keeps words intact when possible.
Pass chunk_size > 0 and 0 <= overlap < chunk_size. The constructor raises ValueError when overlap >= chunk_size, but a negative overlap can pass validation and produce invalid chunks.