setMinTrainingSize

The minimum number of vectors for training the index. The default value is zero, meaning that minTrainingSize will be automatically calculated by the index based on the number of centroids specified, encoding types, and the encoding parameters.

Note: The training will occur at or before the APPROX_VECTOR_DISANCE query is executed, provided there is enough data at that time and, consequently, if training is triggered during a query, the query may take longer to return results.

If a query is executed against the index before it is trained, a full scan of the vectors will be performed. If there are insufficient vectors in the database for training, a warning message will be logged, indicating the required number of vectors.