VectorStoreTextSearch<Record> Class
- java.
lang. Object - com.
microsoft. semantickernel. data. VectorStoreTextSearch<Record>
- com.
Type Parameters
- Record
The record type.
Implements
public class VectorStoreTextSearch<Record>
implements TextSearch
A text search implementation that uses a vector record collection to perform the search.
Constructor Summary
| Constructor | Description |
|---|---|
| VectorStoreTextSearch(VectorizedSearch<Record> vectorizedSearch, TextEmbeddingGenerationService textEmbeddingGenerationService, TextSearchStringMapper stringMapper, TextSearchResultMapper resultMapper, VectorStoreTextSearchOptions options) |
Create a new instance of Vector |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Builder<Record> |
builder()
Create a new instance of VectorStoreTextSearch.Builder<Record>. |
|
reactor.core.publisher.Mono<Kernel |
getSearchResultsAsync(String query, TextSearchOptions options)
Perform a search for content related to the specified query and return Object values representing the search results. |
|
reactor.core.publisher.Mono<Kernel |
getTextSearchResultsAsync(String query, TextSearchOptions options)
Perform a search for content related to the specified query and return Text |
|
reactor.core.publisher.Mono<Kernel |
searchAsync(String query, TextSearchOptions options)
Perform a search for content related to the specified query and return String values representing the search results. |
Methods inherited from java.lang.Object
Constructor Details
VectorStoreTextSearch
public VectorStoreTextSearch(VectorizedSearch
Create a new instance of VectorStoreTextSearch with VectorizedSearch<Record> to perform vectorized search and TextEmbeddingGenerationService to generate text embeddings.
Parameters:
Method Details
builder
public static VectorStoreTextSearch.Builder
Create a new instance of VectorStoreTextSearch.Builder<Record>.
Returns:
getSearchResultsAsync
public Mono
Perform a search for content related to the specified query and return Object values representing the search results.
Parameters:
Returns:
getTextSearchResultsAsync
public Mono
Perform a search for content related to the specified query and return TextSearchResult values representing the search results.
Parameters:
Returns:
searchAsync
public Mono
Perform a search for content related to the specified query and return String values representing the search results.
Parameters:
Returns: