Skip to content

Variable: searchModeSchema

const searchModeSchema: ZodEnum<{ hybrid: "hybrid"; keyword: "keyword"; vector: "vector"; }>

How a query is matched. hybrid (the default) fuses vector similarity with BM25 keyword ranking - the right choice for most search boxes and for source data with exact identifiers (SKUs, error codes). vector is pure semantic similarity; keyword is pure BM25 full-text (Beta on Databricks). The value maps onto the serving API’s query_type (ANN / HYBRID).