Class CollectionFindAndRerankSortBuilder<T>
A sort builder specific for a FindAndRerank operation on a collection.
public class CollectionFindAndRerankSortBuilder<T> : FindAndRerankSortBuilder<T>
Type Parameters
TThe type of the document
- Inheritance
-
CollectionFindAndRerankSortBuilder<T>
- Inherited Members
Methods
Hybrid(float[], string)
Adds a hybrid sort by specifying a vector for the vector sub-search and a string for the lexical sub-search.
public CollectionFindAndRerankSortBuilder<T> Hybrid(float[] vector, string lexical)
Parameters
vectorfloat[]The query vector for the ANN sub-search. The dimension must match the collection's.
lexicalstringThe query string for the lexical sub-search.
Returns
- CollectionFindAndRerankSortBuilder<T>
The collection sort builder.
Hybrid(string)
Adds a hybrid sort by specifying a string value to use as query string both for the vector and the lexical sub-searches. Requires vectorize on the collection.
public CollectionFindAndRerankSortBuilder<T> Hybrid(string hybrid)
Parameters
hybridstringThe query string for the sub-searches.
Returns
- CollectionFindAndRerankSortBuilder<T>
The collection sort builder.
Hybrid(string, string)
Adds a hybrid sort by specifying two different query strings, one for the vector sub-search (through vectorize, which must be configured for the collection) and one for the lexical sub-search.
public CollectionFindAndRerankSortBuilder<T> Hybrid(string vectorize, string lexical)
Parameters
vectorizestringThe query string for the ANN sub-search.
lexicalstringThe query string for the lexical sub-search.
Returns
- CollectionFindAndRerankSortBuilder<T>
The collection sort builder.