Class VectorStoreTextSearch.Builder<Record>
- java.lang.Object
-
- com.microsoft.semantickernel.data.VectorStoreTextSearch.Builder<Record>
-
- Type Parameters:
Record- The record type.
- Enclosing class:
- VectorStoreTextSearch<Record>
public static class VectorStoreTextSearch.Builder<Record> extends Object
A builder for theVectorStoreTextSearchclass.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorStoreTextSearch<Record>build()Builds theVectorStoreTextSearchinstance.VectorStoreTextSearch.Builder<Record>withOptions(VectorStoreTextSearchOptions options)Sets the options.VectorStoreTextSearch.Builder<Record>withResultMapper(TextSearchResultMapper resultMapper)Sets the result mapper.VectorStoreTextSearch.Builder<Record>withStringMapper(TextSearchStringMapper stringMapper)Sets the string mapper.VectorStoreTextSearch.Builder<Record>withTextEmbeddingGenerationService(TextEmbeddingGenerationService textEmbeddingGenerationService)Sets the text embedding generation service.VectorStoreTextSearch.Builder<Record>withVectorizedSearch(VectorizedSearch<Record> vectorizedSearch)Sets the vectorized search.
-
-
-
Method Detail
-
withVectorizedSearch
public VectorStoreTextSearch.Builder<Record> withVectorizedSearch(VectorizedSearch<Record> vectorizedSearch)
Sets the vectorized search.- Parameters:
vectorizedSearch- The vectorized search.- Returns:
- The builder.
-
withTextEmbeddingGenerationService
public VectorStoreTextSearch.Builder<Record> withTextEmbeddingGenerationService(TextEmbeddingGenerationService textEmbeddingGenerationService)
Sets the text embedding generation service.- Parameters:
textEmbeddingGenerationService- The text embedding generation service.- Returns:
- The builder.
-
withStringMapper
public VectorStoreTextSearch.Builder<Record> withStringMapper(TextSearchStringMapper stringMapper)
Sets the string mapper.- Parameters:
stringMapper- The string mapper.- Returns:
- The builder.
-
withResultMapper
public VectorStoreTextSearch.Builder<Record> withResultMapper(TextSearchResultMapper resultMapper)
Sets the result mapper.- Parameters:
resultMapper- The result mapper.- Returns:
- The builder.
-
withOptions
public VectorStoreTextSearch.Builder<Record> withOptions(VectorStoreTextSearchOptions options)
Sets the options.- Parameters:
options- The options.- Returns:
- The builder.
-
build
public VectorStoreTextSearch<Record> build()
Builds theVectorStoreTextSearchinstance.- Returns:
- The
VectorStoreTextSearchinstance.
-
-