Class: abstract
FileReader
A FileReader takes file paths and imports data into Document objects.
Extended by
LlamaParseReader
PapaCSVReader
DocxReader
HTMLReader
ImageReader
JSONReader
MarkdownReader
PDFReader
TextFileReader
Implements
Constructors
new FileReader()
new FileReader():
FileReader
Returns
Methods
loadData()
Parameters
• filePath: string
Returns
Implementation of
Defined in
packages/core/schema/dist/schema/index.d.ts:187
loadDataAsContent()
abstract
loadDataAsContent(fileContent
,fileName
?):Promise
<Document
<Metadata
>[]>
Parameters
• fileContent: Uint8Array
• fileName?: string
Returns
Defined in
packages/core/schema/dist/schema/index.d.ts:186
addMetaData()
static
addMetaData(filePath
): (doc
,index
) =>void
Parameters
• filePath: string
Returns
Function
Parameters
• index: number
Returns
void
Defined in
packages/core/schema/dist/schema/index.d.ts:188