TextSearchKernelBuilderExtensions.AddVectorStoreTextSearch<TRecord> 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.
Register a VectorStoreTextSearch<TRecord> instance with the specified service ID.
public static Microsoft.SemanticKernel.IKernelBuilder AddVectorStoreTextSearch<TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, Microsoft.SemanticKernel.Data.ITextSearchStringMapper? stringMapper = default, Microsoft.SemanticKernel.Data.ITextSearchResultMapper? resultMapper = default, Microsoft.SemanticKernel.Data.VectorStoreTextSearchOptions? options = default, string? serviceId = default);
static member AddVectorStoreTextSearch : Microsoft.SemanticKernel.IKernelBuilder * Microsoft.SemanticKernel.Data.ITextSearchStringMapper * Microsoft.SemanticKernel.Data.ITextSearchResultMapper * Microsoft.SemanticKernel.Data.VectorStoreTextSearchOptions * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddVectorStoreTextSearch(Of TRecord) (builder As IKernelBuilder, Optional stringMapper As ITextSearchStringMapper = Nothing, Optional resultMapper As ITextSearchResultMapper = Nothing, Optional options As VectorStoreTextSearchOptions = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Type Parameters
- TRecord
Parameters
- builder
- IKernelBuilder
The IKernelBuilder to register the ITextSearch on.
- stringMapper
- ITextSearchStringMapper
ITextSearchStringMapper instance that can map a TRecord to a String
- resultMapper
- ITextSearchResultMapper
ITextSearchResultMapper instance that can map a TRecord to a TextSearchResult
- options
- VectorStoreTextSearchOptions
Options used to construct an instance of VectorStoreTextSearch<TRecord>
- serviceId
- String
An optional service id to use as the service key.