Ga naar hoofdinhoud

Class: SimpleDirectoryReader

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

Hierarchy

  • SimpleDirectoryReader

    SimpleDirectoryReader

Constructors

constructor

new SimpleDirectoryReader(observer?): SimpleDirectoryReader

Parameters

NameType
observer?ReaderCallback

Returns

SimpleDirectoryReader

Inherited from

EdgeSimpleDirectoryReader.constructor

Defined in

packages/core/src/readers/SimpleDirectoryReader.edge.ts:33

Methods

loadData

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

Parameters

NameType
paramsSimpleDirectoryReaderLoadDataParams

Returns

Promise<Document<Metadata>[]>

Overrides

EdgeSimpleDirectoryReader.loadData

Defined in

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

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

Parameters

NameType
directoryPathstring

Returns

Promise<Document<Metadata>[]>

Overrides

EdgeSimpleDirectoryReader.loadData

Defined in

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