llamaindex
Version:
<p align="center"> <img height="100" width="100" alt="LlamaIndex logo" src="https://ts.llamaindex.ai/square.svg" /> </p> <h1 align="center">LlamaIndex.TS</h1> <h3 align="center"> Data framework for your LLM application. </h3>
10 lines (9 loc) • 463 B
TypeScript
import type { BaseNodePostprocessor } from "@llamaindex/core/postprocessor";
import type { NodeWithScore } from "@llamaindex/core/schema";
export declare class SimilarityPostprocessor implements BaseNodePostprocessor {
similarityCutoff?: number | undefined;
constructor(options?: {
similarityCutoff?: number | undefined;
});
postprocessNodes(nodes: NodeWithScore[]): Promise<NodeWithScore<import("@llamaindex/core/schema").Metadata>[]>;
}