Logo
Interfaces

BaseNodePostprocessor

Defined in: packages/core/src/postprocessor/type.ts:4

Methods

postprocessNodes()

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

Defined in: packages/core/src/postprocessor/type.ts:11

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.

query?

MessageContent

Optional query string.

Returns

Promise<NodeWithScore<Metadata>[]>

On this page