Class KnnVectorProperty
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class KnnVectorProperty : DocValuesPropertyBase, IPropertyWithClrOrigin, IKnnVectorProperty, IDocValuesProperty, ICoreProperty, IProperty, IFieldMapping
Constructors
| Edit this page View SourceKnnVectorProperty()
Declaration
public KnnVectorProperty()
Properties
| Edit this page View SourceCompressionLevel
The compression level applied to the vector field (for example, 1x, 2x, 4x).
Higher compression reduces memory footprint at the cost of some search accuracy.
Declaration
public string CompressionLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DataType
The data type of the vector elements. Defaults to float. Set to byte to store each
dimension as an 8-bit signed integer ([-128, 127]), or binary for binary vectors,
reducing memory and storage requirements.
Declaration
public string DataType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Dimension
The dimension of the vector.
Declaration
public int? Dimension { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Method
The method to use when the underlying Approximate k-NN algorithm does not require training.
Declaration
public IKnnMethod Method { get; set; }
Property Value
| Type | Description |
|---|---|
| IKnnMethod |
Mode
The mode that determines the default configuration of the vector field, balancing between
low latency and low cost (for example, in_memory or on_disk).
Declaration
public string Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ModelId
The model to use when the underlying Approximate k-NN algorithm requires a training step.
Declaration
public string ModelId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SpaceType
The vector space used to calculate the distance between vectors. Can be specified at the top level of the field, as an alternative to specifying it on the Method.
Declaration
public string SpaceType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |