BaseExtractor
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:12
TransformComponent
abstract基础提取器<Options>(nodes,options?):BaseNode<Metadata>[] |Promise<BaseNode<Metadata>[]>
定义于:.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
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:20
BaseExtractor
TransformComponent.constructor
isTextNodeOnly
Section titled “isTextNodeOnly”isTextNodeOnly:
boolean=true
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:13
showProgress
Section titled “showProgress”showProgress:
boolean=true
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:14
metadataMode
Section titled “metadataMode”metadataMode:
MetadataMode=MetadataMode.ALL
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:15
disableTemplateRewrite
Section titled “disableTemplateRewrite”disableTemplateRewrite:
boolean=false
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:16
inPlace
Section titled “inPlace”inPlace:
boolean=true
Defined in: .build/typescript/packages/llamaindex/src/extractors/types.ts:17
numWorkers
Section titled “numWorkers”numWorkers:
number=4
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:18
extract()
Section titled “extract()”
abstract提取(nodes):Promise<Record<string,any>[]>
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:32
BaseNode<Metadata>[]
Promise<Record<string, any>[]>
processNodes()
Section titled “processNodes()”processNodes(
nodes,excludedEmbedMetadataKeys,excludedLlmMetadataKeys):Promise<BaseNode<Metadata>[]>
定义于:.build/typescript/packages/llamaindex/src/extractors/types.ts:41
BaseNode<Metadata>[]
用于提取元数据的节点。
excludedEmbedMetadataKeys
Section titled “excludedEmbedMetadataKeys”从嵌入中排除的元数据键。
undefined | string[]
excludedLlmMetadataKeys
Section titled “excludedLlmMetadataKeys”要从LLM中排除的元数据键。
undefined | string[]
Promise<BaseNode<Metadata>[]>
从节点中提取的元数据。