Skip to main content

Class: MetadataReplacementPostProcessor

Implements

Constructors

constructor

new MetadataReplacementPostProcessor(targetMetadataKey): MetadataReplacementPostProcessor

Parameters

NameType
targetMetadataKeystring

Returns

MetadataReplacementPostProcessor

Defined in

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

Properties

targetMetadataKey

targetMetadataKey: string

Defined in

packages/core/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

NameTypeDescription
nodesNodeWithScore<Metadata>[]Array of nodes with scores.

Returns

Promise<NodeWithScore<Metadata>[]>

Implementation of

BaseNodePostprocessor.postprocessNodes

Defined in

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