Documentation
¶
Overview ¶
Package ingest turns uploaded documents (PDF, DOCX, XLSX, Markdown, text) into plain text and splits that text into coherent chunks suitable for storing as memories.
Index ¶
Constants ¶
View Source
const DefaultChunkRunes = 1200
DefaultChunkRunes is the target chunk size when the caller passes 0.
Variables ¶
View Source
var ErrUnsupported = errors.New("unsupported document type")
ErrUnsupported is returned when a file's extension is not one we can extract.
Functions ¶
func Chunk ¶
Chunk splits text into chunks of up to maxRunes runes, preferring paragraph boundaries and falling back to whitespace within an oversized paragraph so each chunk stays a coherent unit of meaning.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.