CreateSchemaFlatVectorField: {
    ALGORITHM: FLAT;
    BLOCK_SIZE?: undefined | number;
    DISTANCE_METRIC: "L2" | "IP" | "COSINE";
    INITIAL_CAP?: undefined | number;
}

Install and import from the "@langchain/redis" integration package instead. Type for creating a flat schema vector field. It extends CreateSchemaVectorField with a block size property.