Class: TextFileReader
Read a .txt file
Extends
Constructors
new TextFileReader()
new TextFileReader():
TextFileReader
Returns
Inherited from
Methods
loadData()
Parameters
• filePath: string
Returns
Promise
<Document
<Metadata
>[]>
Inherited from
Source
packages/llamaindex/src/readers/type.ts:20
loadDataAsContent()
loadDataAsContent(
fileContent
):Promise
<Document
<Metadata
>[]>
Parameters
• fileContent: Uint8Array
Returns
Promise
<Document
<Metadata
>[]>
Overrides
FileReader
. loadDataAsContent
Source
packages/llamaindex/src/readers/TextFileReader.ts:9
addMetaData()
static
addMetaData(filePath
): (doc
,index
) =>void
Parameters
• filePath: string
Returns
Function
Parameters
• index: number
Returns
void