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

Type Parameters

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

Install and import from the "@langchain/redis" integration package instead. Type for creating a schema vector field. It includes the algorithm, distance metric, and initial capacity.