Interface for the parameters of the EmbeddingsFilter class.

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

Properties

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

Type declaration

    • (x, y): number[][]
    • Parameters

      • x: number[][]
      • y: number[][]

      Returns number[][]

similarityThreshold?: number

Generated using TypeDoc