IVectorizableTextSearch<TRecord>.VectorizableTextSearchAsync 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 text and filter. The text string will be vectorized downstream and used for the vector search.
public System.Threading.Tasks.Task<Microsoft.Extensions.VectorData.VectorSearchResults<TRecord>> VectorizableTextSearchAsync(string searchText, Microsoft.Extensions.VectorData.VectorSearchOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member VectorizableTextSearchAsync : string * Microsoft.Extensions.VectorData.VectorSearchOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.VectorData.VectorSearchResults<'Record>>
Public Function VectorizableTextSearchAsync (searchText As String, Optional options As VectorSearchOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VectorSearchResults(Of TRecord))
Parameters
- searchText
- String
The text 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
The records found by the vector search, including their result scores.