FunctionType
Specifies the type of a collection function.
pub enum FunctionType {
Unknown,
Bm25,
TextEmbedding,
Rerank,
MinHash,
}
VARIANTS:
UnknownUnspecified or unrecognized function type. This is the default.
Bm25BM25 ranking function that turns an input text field into a sparse vector output field.
TextEmbeddingText-embedding function that turns an input text field into a dense vector output field.
RerankReranking function that applies a configured reranking strategy to a candidate set.
MinHashMinHash function that turns an input text field into a binary MinHash signature.
Example
let function = Function::new()
.name("bm25_title")
.function_type(FunctionType::Bm25);