Interface for the parameters of the EmbeddingsFilter class.

interface EmbeddingsFilterParams {
    embeddings: EmbeddingsInterface;
    k?: number;
    similarityFn?: ((x: number[][], y: number[][]) => number[][]);
    similarityThreshold?: number;
}

Properties

embeddings: EmbeddingsInterface
k?: number
similarityFn?: ((x: number[][], y: number[][]) => number[][])
similarityThreshold?: number