MCPcopy Create free account
hub / github.com/tmc/langchaingo / Loader

Interface Loader

documentloaders/documentloaders.go:11–16  ·  view source on GitHub ↗

Loader is the interface for loading and splitting documents from a source.

Source from the content-addressed store, hash-verified

9
10// Loader is the interface for loading and splitting documents from a source.
11type Loader interface {
12 // Load loads from a source and returns documents.
13 Load(ctx context.Context) ([]schema.Document, error)
14 // LoadAndSplit loads from a source and splits the documents using a text splitter.
15 LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error)
16}

Callers 8

LoadMethod · 0.65
mainFunction · 0.65
loadTestDataFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65

Implementers 6

AssemblyAIAudioTranscriptLoaderdocumentloaders/assemblyai.go
CSVdocumentloaders/csv.go
HTMLdocumentloaders/html.go
Textdocumentloaders/text.go
PDFdocumentloaders/pdf.go
RecursiveDirectoryLoaderdocumentloaders/directory.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…