UNPKG

@llamaindex/core

Version:
15 lines (12 loc) 541 B
import { MessageContent } from '../../llms/dist/index.js'; import { NodeWithScore } from '../../schema/dist/index.js'; interface BaseNodePostprocessor { /** * Send message along with the class's current chat history to the LLM. * This version returns a promise for asynchronous operation. * @param nodes Array of nodes with scores. * @param query Optional query string. */ postprocessNodes(nodes: NodeWithScore[], query?: MessageContent): Promise<NodeWithScore[]>; } export type { BaseNodePostprocessor };