Table of Contents

Class VectorOptions

Namespace
DataStax.AstraDB.DataApi.Core
Assembly
DataStax.AstraDB.DataApi.dll

Vector options for a collection definition

public class VectorOptions
Inheritance
VectorOptions
Inherited Members

Properties

Dimension

The dimension of the vector

[JsonPropertyName("dimension")]
public int? Dimension { get; set; }

Property Value

int?

Metric

The similarity metric to use

[JsonPropertyName("metric")]
public SimilarityMetric Metric { get; set; }

Property Value

SimilarityMetric

Service

Options for the service providing the vectorization

[JsonPropertyName("service")]
public VectorServiceOptions Service { get; set; }

Property Value

VectorServiceOptions

SourceModel

Configures the index with the fastest settings for a given source of embeddings vectors.

As of time of writing, example sourceModels include 'openai-v3-large', 'cohere-v3', 'bert', and a handful of others.

If no source model if provided, this setting will default to 'other'.

[JsonPropertyName("sourceModel")]
public string SourceModel { get; set; }

Property Value

string