Nhảy tới nội dung

Interface: BaseNodePostprocessor

Implemented by

Methods

postprocessNodes

postprocessNodes(nodes, query?): 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.
query?MessageContent | QueryBundleOptional query to use for postprocessing.

Returns

Promise<NodeWithScore<Metadata>[]>

Defined in

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