Section navigation

Public classSealed LeanVectorAttribute

Namespace
Rowles.LeanCorpus.Mapping.Attributes
Assembly
Rowles.LeanCorpus.dll

Maps a dense float vector property to a VectorField. The property type must be float[], and Dimension must be set to the expected length.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class LeanVectorAttribute : Attribute
Inheritance
LeanVectorAttribute

Public constructor LeanVectorAttribute(string)

Initialises a new LeanVectorAttribute.

Public property Dimension

The required dimension of every vector value. Must be set.

Public property Name

The field name used at indexing time.

Public property Required

Whether the field is required by the generated schema.