Class TableVectorIndexDefinition

java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableIndexDefinition<TableVectorIndexDefinitionOptions>
com.datastax.astra.client.tables.definition.indexes.TableVectorIndexDefinition

public class TableVectorIndexDefinition extends TableIndexDefinition<TableVectorIndexDefinitionOptions>
Represents a definition for table vector indices, allowing configuration of vector-specific options such as similarity metrics and source models. This class provides a fluent interface for building vector index definitions.

Example usage:

 
 TableVectorIndexDefinition vectorIndexDefinition = new TableVectorIndexDefinition()
     .column("feature_vector")
     .metric(SimilarityMetric.COSINE)
     .sourceModel("model_name")
     .options(new TableVectorIndexDefinitionOptions());