Idioma

VectorSearchResult<T> Struct

Definition

[System.Diagnostics.CodeAnalysis.Experimental("EF9105")]
[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct VectorSearchResult<T>
[<System.Diagnostics.CodeAnalysis.Experimental("EF9105")>]
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type VectorSearchResult<'T> = struct
Public Structure VectorSearchResult(Of T)

Type Parameters

T
Inheritance
VectorSearchResult<T>
Attributes

Constructors

Name Description
VectorSearchResult<T>(T, Double)

Represents the results from a call to VectorSearch<T,TVector>(DbSet<T>, Expression<Func<T,TVector>>, TVector, String).

Properties

Name Description
Distance

The distance between the query vector and the similar vector.

Value

The entity instance representing the row with a similar vector.

Methods

Name Description
Deconstruct(T, Double)

Deconstructs the result into the returned entity and the distance.

Applies to