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

Struct RecursiveDirectoryLoader

documentloaders/directory.go:47–55  ·  view source on GitHub ↗

RecursiveDirectoryLoader is a document loader that loads documents with allowed extensions from a directory.

Source from the content-addressed store, hash-verified

45
46// RecursiveDirectoryLoader is a document loader that loads documents with allowed extensions from a directory.
47type RecursiveDirectoryLoader struct {
48 root string
49 maxDepth int
50 allowExt map[string]struct{}
51
52 Columns []string // CSV Columns
53
54 PDFPassword string // PDF password
55}
56
57var _ Loader = (*RecursiveDirectoryLoader)(nil)
58

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected