VectorSearchResult<T> Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the results from a call to VectorSearch<T,TVector>(DbSet<T>, Expression<Func<T,TVector>>, TVector, String).
[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. |