Versions in this module Expand all Collapse all v1 v1.0.0 Jan 28, 2026 Changes in this version + const MaxDownloadSize + var ErrUnknownFormat = errors.New("unknown file format") + type Document struct + Content []string + Title string + Type FileType + func FromBytes(data []byte) (Document, error) + func FromFile(path string) (Document, error) + func FromReader(r io.ReaderAt, size int64) (Document, error) + func FromURL(ctx context.Context, fileURL string) (Document, error) + type FileType string + const TypeDOC + const TypeDOCX + const TypeODT + const TypePDF + const TypePPTX + const TypeTXT