VectorStoreTextSearch.Builder<Record> Class

  • java.lang.Object
    • com.microsoft.semantickernel.data.VectorStoreTextSearch.Builder<Record>

Type Parameters

Record

The record type.

public static class VectorStoreTextSearch.Builder<Record>

A builder for the VectorStoreTextSearch<Record> class.

Constructor Summary

Constructor Description
Builder()

Method Summary

Modifier and Type Method and Description
VectorStoreTextSearch<Record> build()

Builds the VectorStoreTextSearch<Record> instance.

Builder<Record> withOptions(VectorStoreTextSearchOptions options)

Sets the options.

Builder<Record> withResultMapper(TextSearchResultMapper resultMapper)

Sets the result mapper.

Builder<Record> withStringMapper(TextSearchStringMapper stringMapper)

Sets the string mapper.

Builder<Record> withTextEmbeddingGenerationService(TextEmbeddingGenerationService textEmbeddingGenerationService)

Sets the text embedding generation service.

Builder<Record> withVectorizedSearch(VectorizedSearch<Record> vectorizedSearch)

Sets the vectorized search.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Builder

public Builder()

Method Details

build

public VectorStoreTextSearch build()

Builds the VectorStoreTextSearch<Record> instance.

Returns:

withOptions

public VectorStoreTextSearch.Builder withOptions(VectorStoreTextSearchOptions options)

Sets the options.

Parameters:

options - The options.

Returns:

The builder.

withResultMapper

public VectorStoreTextSearch.Builder withResultMapper(TextSearchResultMapper resultMapper)

Sets the result mapper.

Parameters:

resultMapper - The result mapper.

Returns:

The builder.

withStringMapper

public VectorStoreTextSearch.Builder withStringMapper(TextSearchStringMapper stringMapper)

Sets the string mapper.

Parameters:

stringMapper - The string mapper.

Returns:

The builder.

withTextEmbeddingGenerationService

public VectorStoreTextSearch.Builder withTextEmbeddingGenerationService(TextEmbeddingGenerationService textEmbeddingGenerationService)

Sets the text embedding generation service.

Parameters:

textEmbeddingGenerationService - The text embedding generation service.

Returns:

The builder.

withVectorizedSearch

public VectorStoreTextSearch.Builder withVectorizedSearch(VectorizedSearch vectorizedSearch)

Sets the vectorized search.

Parameters:

vectorizedSearch - The vectorized search.

Returns:

The builder.

Applies to