documentloader

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentLoader

type DocumentLoader interface {
	Load(context.Context) ([]golc.Document, error)
	LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter)
}

type TextLoader

type TextLoader struct {
	// contains filtered or unexported fields
}

func NewTextLoader

func NewTextLoader(r io.Reader) *TextLoader

func (*TextLoader) Load

func (l *TextLoader) Load(ctx context.Context) ([]golc.Document, error)

func (*TextLoader) LoadAndSplit

func (l *TextLoader) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]golc.Document, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL