Share via


VectorStoreRecordVectorAttribute Class

Definition

Defines an attribute to mark a property on a record class as a vector.

public ref class VectorStoreRecordVectorAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false)]
public sealed class VectorStoreRecordVectorAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false)>]
type VectorStoreRecordVectorAttribute = class
    inherit Attribute
Public NotInheritable Class VectorStoreRecordVectorAttribute
Inherits Attribute
Inheritance
VectorStoreRecordVectorAttribute
Attributes

Remarks

The characteristics defined here influence how the property is treated by the vector store.

Constructors

VectorStoreRecordVectorAttribute()

Initializes a new instance of the VectorStoreRecordVectorAttribute class.

VectorStoreRecordVectorAttribute(Int32, String, String)

Initializes a new instance of the VectorStoreRecordVectorAttribute class.

VectorStoreRecordVectorAttribute(Int32, String)

Initializes a new instance of the VectorStoreRecordVectorAttribute class.

VectorStoreRecordVectorAttribute(Int32)

Initializes a new instance of the VectorStoreRecordVectorAttribute class.

Properties

Dimensions

Gets the number of dimensions that the vector has.

DistanceFunction

Gets the distance function to use when comparing vectors.

IndexKind

Gets the kind of index to use.

StoragePropertyName

Gets or sets an optional name to use for the property in storage, if different from the property name.

Applies to