IVectorizedSearch<TRecord>.VectorizedSearchAsync<TVector> Method
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.
Search the vector store for records that match the given embedding and filter.
public System.Threading.Tasks.Task<Microsoft.Extensions.VectorData.VectorSearchResults<TRecord>> VectorizedSearchAsync<TVector>(TVector vector, Microsoft.Extensions.VectorData.VectorSearchOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member VectorizedSearchAsync : 'Vector * Microsoft.Extensions.VectorData.VectorSearchOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.VectorData.VectorSearchResults<'Record>>
Public Function VectorizedSearchAsync(Of TVector) (vector As TVector, Optional options As VectorSearchOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VectorSearchResults(Of TRecord))
Type Parameters
- TVector
The type of the vector.
Parameters
- vector
- TVector
The vector to search the store with.
- options
- VectorSearchOptions
The options that control the behavior of the search.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
Task<VectorSearchResults<TRecord>>
The records found by the vector search, including their result scores.
Applies to
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.