Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (Loader) LoadAndSplit ¶
func (l Loader) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error)
LoadAndSplit loads from a source and splits the documents using a text splitter.
type RecursiveLoader ¶
type RecursiveLoader struct { *Loader // contains filtered or unexported fields }
func NewRecursiveLoader ¶
func NewRecursiveLoader(opts ...RecursiveOption) *RecursiveLoader
func (RecursiveLoader) Hash ¶
func (l RecursiveLoader) Hash() ([]byte, error)
func (RecursiveLoader) LoadAndSplit ¶
func (l RecursiveLoader) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error)
LoadAndSplit loads from a source and splits the documents using a text splitter.
func (RecursiveLoader) Type ¶
func (l RecursiveLoader) Type() string
type RecursiveOption ¶
type RecursiveOption func(*RecursiveLoader)
func WithMaxPages ¶
func WithMaxPages(maxPages int) RecursiveOption
func WithPageLoader ¶
func WithPageLoader(loader *Loader) RecursiveOption
Click to show internal directories.
Click to hide internal directories.