VectorStoreVectorAttribute Osztály

Definíció

Egy tulajdonság vektorként való megjelöléséhez definiál egy attribútumot egy rekordosztályon.

public ref class VectorStoreVectorAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false)]
public sealed class VectorStoreVectorAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false)>]
type VectorStoreVectorAttribute = class
    inherit Attribute
Public NotInheritable Class VectorStoreVectorAttribute
Inherits Attribute
Öröklődés
VectorStoreVectorAttribute
Attribútumok

Megjegyzések

Az itt meghatározott jellemzők befolyásolják a tulajdonság vektortároló általi kezelését.

Konstruktorok

Name Description
VectorStoreVectorAttribute(Int32)

Inicializálja a VectorStoreVectorAttribute osztály új példányát.

Tulajdonságok

Name Description
Dimensions

A vektor dimenzióinak számát adja meg.

DistanceFunction

Lekéri a vektorok összehasonlítása során használni kívánt távolságfüggvényt.

IndexKind

Lekéri a használni kívánt indextípust.

StorageName

Lekéri a tárban lévő tulajdonsághoz használandó opcionális nevet, ha eltér a tulajdonság nevétől.

A következőre érvényes: