Share via


VectorStoreDataAttribute Class

Definition

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

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

Remarks

Marking a property as 'data' means that the property is not a key and not a vector. But optionally, this property can have an associated vector field containing an embedding for this data. The characteristics defined here influence how the property is treated by the vector store.

Constructors

VectorStoreDataAttribute()

Properties

IsFullTextIndexed

Gets or sets a value indicating whether this data property is indexed for full-text search.

IsIndexed

Gets or sets a value indicating whether this data property is indexed.

StorageName

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

Applies to