Skip to main content

Class: MetadataReplacementPostProcessor

Implements

Constructors

new MetadataReplacementPostProcessor()

new MetadataReplacementPostProcessor(targetMetadataKey): MetadataReplacementPostProcessor

Parameters

targetMetadataKey: string

Returns

MetadataReplacementPostProcessor

Defined in

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

Properties

targetMetadataKey

targetMetadataKey: string

Defined in

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

Defined in

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