Class: MetadataReplacementPostProcessor
Implements
Constructors
constructor
• new MetadataReplacementPostProcessor(targetMetadataKey
): MetadataReplacementPostProcessor
Parameters
Name | Type |
---|---|
targetMetadataKey | string |
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
Name | Type | Description |
---|---|---|
nodes | NodeWithScore <Metadata >[] | Array of nodes with scores. |