Class TableVectorIndexDefinitionOptions

java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableVectorIndexDefinitionOptions

public class TableVectorIndexDefinitionOptions extends Object
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 Details

    • TableVectorIndexDefinitionOptions

      public TableVectorIndexDefinitionOptions()
      Default constructor.
  • Method Details

    • metric

      Sets the similarity metric for the vector index.
      Parameters:
      metric - the SimilarityMetric to be used for the index.
      Returns:
      the current instance for method chaining.
    • sourceModel

      public TableVectorIndexDefinitionOptions sourceModel(String 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.