
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
LeanVectorAttribute(string)
Initialises a new LeanVectorAttribute.
Dimension
The required dimension of every vector value. Must be set.
Name
The field name used at indexing time.
Required
Whether the field is required by the generated schema.