Type Alias CreateSchemaVectorField<T, A>

CreateSchemaVectorField<T, A>: {
    ALGORITHM: T;
    DISTANCE_METRIC: "L2" | "IP" | "COSINE";
    INITIAL_CAP?: undefined | number;
}

Type for creating a schema vector field. It includes the algorithm, distance metric, and initial capacity.

Type Parameters

  • T extends VectorAlgorithms
  • A extends Record<string, unknown>