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
Name | Type |
---|---|
observer? | ReaderCallback |
Returns
Inherited from
EdgeSimpleDirectoryReader.constructor
Defined in
packages/core/src/readers/SimpleDirectoryReader.edge.ts:33
Methods
loadData
▸ loadData(params
): Promise
<Document
<Metadata
>[]>
Parameters
Name | Type |
---|---|
params | SimpleDirectoryReaderLoadDataParams |
Returns
Overrides
EdgeSimpleDirectoryReader.loadData
Defined in
packages/core/src/readers/SimpleDirectoryReader.ts:35
▸ loadData(directoryPath
): Promise
<Document
<Metadata
>[]>
Parameters
Name | Type |
---|---|
directoryPath | string |