Przejdź do głównej zawartości

Class: SimpleDirectoryReader

Read all the documents in a directory. By default, supports the list of file types in the FILE_EXT_TO_READER map.

Extends

  • SimpleDirectoryReader

Constructors

new SimpleDirectoryReader()

new SimpleDirectoryReader(observer?): SimpleDirectoryReader

Parameters

observer?: ReaderCallback

Returns

SimpleDirectoryReader

Inherited from

EdgeSimpleDirectoryReader.constructor

Source

packages/llamaindex/src/readers/SimpleDirectoryReader.edge.ts:43

Methods

loadData()

loadData(params)

loadData(params): Promise <Document <Metadata>[]>

Parameters

params: SimpleDirectoryReaderLoadDataParams

Returns

Promise <Document <Metadata>[]>

Overrides

EdgeSimpleDirectoryReader.loadData

Source

packages/llamaindex/src/readers/SimpleDirectoryReader.ts:35

loadData(directoryPath)

loadData(directoryPath): Promise <Document <Metadata>[]>

Parameters

directoryPath: string

Returns

Promise <Document <Metadata>[]>

Overrides

EdgeSimpleDirectoryReader.loadData

Source

packages/llamaindex/src/readers/SimpleDirectoryReader.ts:38