Versions in this module Expand all Collapse all v0 v0.1.15 Dec 18, 2025 v0.1.14 Nov 28, 2025 Changes in this version + var ErrMissingAudioSource = errors.New("assemblyai: missing audio source") + type AssemblyAIAudioTranscriptLoader struct + func NewAssemblyAIAudioTranscript(apiKey string, opts ...AssemblyAIOption) *AssemblyAIAudioTranscriptLoader + func (a *AssemblyAIAudioTranscriptLoader) Load(ctx context.Context) ([]schema.Document, error) + func (a *AssemblyAIAudioTranscriptLoader) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) + type AssemblyAIOption func(loader *AssemblyAIAudioTranscriptLoader) + func WithAudioReader(r io.Reader) AssemblyAIOption + func WithAudioURL(url string) AssemblyAIOption + func WithTranscriptFormat(format TranscriptFormat) AssemblyAIOption + func WithTranscriptParams(params *assemblyai.TranscriptOptionalParams) AssemblyAIOption + type CSV struct + func NewCSV(r io.Reader, columns ...string) CSV + func (c CSV) Load(_ context.Context) ([]schema.Document, error) + func (c CSV) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) + type HTML struct + func NewHTML(r io.Reader) HTML + func (h HTML) Load(_ context.Context) ([]schema.Document, error) + func (h HTML) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) + type Loader interface + Load func(ctx context.Context) ([]schema.Document, error) + LoadAndSplit func(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) + type NotionDirectoryLoader struct + func NewNotionDirectory(filePath string, encoding ...string) *NotionDirectoryLoader + func (n *NotionDirectoryLoader) Load() ([]schema.Document, error) + type Option func(*RecursiveDirectoryLoader) + func WithAllowExts(exts ...string) Option + func WithCSVOpts(cols []string) Option + func WithMaxDepth(d int) Option + func WithPDFOpts(pwd string) Option + func WithRoot(root string) Option + type PDF struct + func NewPDF(r io.ReaderAt, size int64, opts ...PDFOptions) PDF + func (p PDF) Load(_ context.Context) ([]schema.Document, error) + func (p PDF) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) + type PDFOptions func(pdf *PDF) + func WithPassword(password string) PDFOptions + type RecursiveDirectoryLoader struct + Columns []string + PDFPassword string + func NewRecursiveDirLoader(opts ...Option) *RecursiveDirectoryLoader + func (l *RecursiveDirectoryLoader) Load(ctx context.Context) ([]schema.Document, error) + func (l *RecursiveDirectoryLoader) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) + type Text struct + func NewText(r io.Reader) Text + func (l Text) Load(_ context.Context) ([]schema.Document, error) + func (l Text) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) + type TranscriptFormat int + const TranscriptFormatParagraphs + const TranscriptFormatSentences + const TranscriptFormatSubtitlesSRT + const TranscriptFormatSubtitlesVTT + const TranscriptFormatText