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) LoadAndSplit ¶
func (l *TextLoader) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]golc.Document, error)
Click to show internal directories.
Click to hide internal directories.