FunctionType

Specifies the type of a collection function.

pub enum FunctionType {
    Unknown,
    Bm25,
    TextEmbedding,
    Rerank,
}

VARIANTS:

  • Unknown

    Unspecified or unrecognized function type. This is the default.

  • Bm25

    BM25 ranking function that turns an input text field into a sparse vector output field.

  • TextEmbedding

    Text-embedding function that turns an input text field into a dense vector output field.

  • Rerank

    Reranking function that applies a configured reranking strategy to a candidate set.

Example

let function = Function::new()
    .name("bm25_title")
    .function_type(FunctionType::Bm25);

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?