Class TableVectorIndexDefinitionOptions
java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableVectorIndexDefinitionOptions
Options for defining vector-based index configurations for tables.
This class provides configuration settings for a vector index, such as the similarity metric
and the source model. The use of
String
allows flexibility in specifying custom metrics or models.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmetric
(SimilarityMetric metric) Sets the similarity metric for the vector index.sourceModel
(String sourceModel) Sets the source model for the vector index.
-
Constructor Details
-
TableVectorIndexDefinitionOptions
public TableVectorIndexDefinitionOptions()Default constructor.
-
-
Method Details
-
metric
Sets the similarity metric for the vector index.- Parameters:
metric
- theSimilarityMetric
to be used for the index.- Returns:
- the current instance for method chaining.
-
sourceModel
Sets the source model for the vector index.- Parameters:
sourceModel
- the name or identifier of the model used for vector computations.- Returns:
- the current instance for method chaining.
-