VectorStoreDataAttribute class final

Marks a property on a record as a data field in a vector store collection.

Example:

class Hotel {
  @VectorStoreDataAttribute(isFullTextIndexed: true)
  final String description;

  Hotel({required this.description});
}

Since Dart has no built-in runtime reflection, annotations are intended for use with code generators or explicit VectorStoreCollectionDefinition construction.

Annotations
  • @Source(name: 'VectorStoreDataAttribute.cs', namespace: 'Microsoft.Extensions.VectorData', repository: 'dotnet/extensions', path: 'src/Libraries/Microsoft.Extensions.VectorData.Abstractions/VectorData/Attributes/')

Constructors

VectorStoreDataAttribute({String? storageName, bool isIndexed = false, bool isFullTextIndexed = false})
Creates a VectorStoreDataAttribute.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isFullTextIndexed bool
Whether the property should be indexed for full-text search.
final
isIndexed bool
Whether the property should be indexed for filtering.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storageName String?
The name used when storing this property in the vector store.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited