package
Version:
v0.0.0-beta.18
Opens a new window with list of versions in this module.
Published: Mar 20, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Chunk is a piece of text from a document.
type Chunker struct {
ChunkSize int
ChunkOverlap int
}
Chunker splits text into overlapping chunks.
New creates a recursive character text splitter.
Split splits text into chunks, returning them with indices.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.