Class: LlamaParseReader
Represents a reader for parsing files using the LlamaParse API. See https://github.com/run-llama/llama_parse
Implements
Constructors
constructor
• new LlamaParseReader(params?
): LlamaParseReader
Parameters
Name | Type |
---|---|
params | Partial <LlamaParseReader > |
Returns
Defined in
packages/core/src/readers/LlamaParseReader.ts:28
Properties
apiKey
• apiKey: string
Defined in
packages/core/src/readers/LlamaParseReader.ts:12
baseUrl
• baseUrl: string
= "https://api.cloud.llamaindex.ai/api/parsing"
Defined in
packages/core/src/readers/LlamaParseReader.ts:14
checkInterval
• checkInterval: number
= 1
Defined in
packages/core/src/readers/LlamaParseReader.ts:18
language
• language: Language
= "en"
Defined in
packages/core/src/readers/LlamaParseReader.ts:24
maxTimeout
• maxTimeout: number
= 2000
Defined in
packages/core/src/readers/LlamaParseReader.ts:16
parsingInstruction
• parsingInstruction: string
= ""
Defined in
packages/core/src/readers/LlamaParseReader.ts:26
resultType
• resultType: ResultType
= "text"
Defined in
packages/core/src/readers/LlamaParseReader.ts:22
verbose
• verbose: boolean
= true
Defined in
packages/core/src/readers/LlamaParseReader.ts:20
Methods
getMimeType
▸ getMimeType(data
): Promise
<string
>
Parameters
Name | Type |
---|---|
data | Buffer |
Returns
Promise
<string
>
Defined in
packages/core/src/readers/LlamaParseReader.ts:117
loadData
▸ loadData(file
, fs?
): Promise
<Document
<Metadata
>[]>