Package version:

Interface VectorEmbedding

Represents a vector embedding. A vector embedding is used to define a vector field in the documents.

interface VectorEmbedding {
    dataType: VectorEmbeddingDataType;
    dimensions: number;
    distanceFunction: VectorEmbeddingDistanceFunction;
    path: string;
}

Properties

The data type of the vector.

dimensions: number

The number of dimensions in the vector.

The distance function to use for distance calculation in between vectors.

path: string

The path to the vector field in the document.