CreateSchemaHNSWVectorField: {
    ALGORITHM: HNSW;
    DISTANCE_METRIC: "L2" | "IP" | "COSINE";
    EF_CONSTRUCTION?: undefined | number;
    EF_RUNTIME?: undefined | number;
    INITIAL_CAP?: undefined | number;
    M?: undefined | number;
}

Install and import from the "@langchain/redis" integration package instead. Type for creating a HNSW schema vector field. It extends CreateSchemaVectorField with M, EF_CONSTRUCTION, and EF_RUNTIME properties.