Class: abstract
BaseExtractor
Extended by
Implements
TransformComponent
<any
>
Constructors
new BaseExtractor()
new BaseExtractor():
BaseExtractor
Returns
Properties
disableTemplateRewrite
disableTemplateRewrite:
boolean
=false
Defined in
packages/llamaindex/src/extractors/types.ts:12
inPlace
inPlace:
boolean
=true
Defined in
packages/llamaindex/src/extractors/types.ts:13
isTextNodeOnly
isTextNodeOnly:
boolean
=true
Defined in
packages/llamaindex/src/extractors/types.ts:9
metadataMode
metadataMode:
MetadataMode
=MetadataMode.ALL
Defined in
packages/llamaindex/src/extractors/types.ts:11
numWorkers
numWorkers:
number
=4
Defined in
packages/llamaindex/src/extractors/types.ts:14
showProgress
showProgress:
boolean
=true
Defined in
packages/llamaindex/src/extractors/types.ts:10
Methods
extract()
abstract
extract(nodes
):Promise
<Record
<string
,any
>[]>
Parameters
Returns
Promise
<Record
<string
, any
>[]>
Defined in
packages/llamaindex/src/extractors/types.ts:16
processNodes()
processNodes(
nodes
,excludedEmbedMetadataKeys
,excludedLlmMetadataKeys
):Promise
<BaseNode
<Metadata
>[]>
Parameters
Nodes to extract metadata from.
• excludedEmbedMetadataKeys: undefined
| string
[] = undefined
Metadata keys to exclude from the embedding.
• excludedLlmMetadataKeys: undefined
| string
[] = undefined
Metadata keys to exclude from the LLM.
Returns
Metadata extracted from the nodes.
Defined in
packages/llamaindex/src/extractors/types.ts:33
transform()
Parameters
• options?: any