Skip to content

BaseExtractor

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:12

  • TransformComponent

abstract BaseExtractor<Options>(nodes, options?): BaseNode<Metadata>[] | Promise<BaseNode<Metadata>[]>

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:12

Options extends Record<string, unknown>

BaseNode<Metadata>[]

Options

BaseNode<Metadata>[] | Promise<BaseNode<Metadata>[]>

new BaseExtractor(): BaseExtractor

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:20

BaseExtractor

TransformComponent.constructor

isTextNodeOnly: boolean = true

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:13


showProgress: boolean = true

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:14


metadataMode: MetadataMode = MetadataMode.ALL

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:15


disableTemplateRewrite: boolean = false

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:16


inPlace: boolean = true

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:17


numWorkers: number = 4

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:18

abstract extract(nodes): Promise<Record<string, any>[]>

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:32

BaseNode<Metadata>[]

Promise<Record<string, any>[]>


processNodes(nodes, excludedEmbedMetadataKeys, excludedLlmMetadataKeys): Promise<BaseNode<Metadata>[]>

Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:41

BaseNode<Metadata>[]

Nodes to extract metadata from.

Metadata keys to exclude from the embedding.

undefined | string[]

Metadata keys to exclude from the LLM.

undefined | string[]

Promise<BaseNode<Metadata>[]>

Metadata extracted from the nodes.