@llamaindex/core
Version:
LlamaIndex Core Module
15 lines (12 loc) • 543 B
text/typescript
import { MessageContent } from '../../llms/dist/index.cjs';
import { NodeWithScore } from '../../schema/dist/index.cjs';
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 };