跳到主要内容

Class: MetadataReplacementPostProcessor

Implements

Constructors

new MetadataReplacementPostProcessor()

new MetadataReplacementPostProcessor(targetMetadataKey): MetadataReplacementPostProcessor

Parameters

targetMetadataKey: string

Returns

MetadataReplacementPostProcessor

Source

packages/llamaindex/src/postprocessors/MetadataReplacementPostProcessor.ts:8

Properties

targetMetadataKey

targetMetadataKey: string

Source

packages/llamaindex/src/postprocessors/MetadataReplacementPostProcessor.ts:6

Methods

postprocessNodes()

postprocessNodes(nodes): Promise <NodeWithScore <Metadata>[]>

Send message along with the class's current chat history to the LLM. This version returns a promise for asynchronous operation.

Parameters

nodes: NodeWithScore <Metadata>[]

Array of nodes with scores.

Returns

Promise <NodeWithScore <Metadata>[]>

Implementation of

BaseNodePostprocessor . postprocessNodes

Source

packages/llamaindex/src/postprocessors/MetadataReplacementPostProcessor.ts:12