Interface: QueryOptions
Optional parameters forMossClient.query().
Properties
| Property | Type | Description |
|---|---|---|
embedding | Optional[Sequence[float]] | Caller-provided query embedding. When supplied, the service/client skips embedding generation. |
top_k | Optional[int] | Number of top results to return. |
alpha | Optional[float] | Weight for hybrid search fusion. 1.0 = pure semantic, 0.0 = pure keyword. Default 0.8. |
filter | Optional[dict] | Metadata filter applied to the query. Only honored on locally loaded indexes — ignored (with a warning) when the query falls back to the cloud API. |
Filter shape
Thefilter value is a dict with either a field condition or a logical
composition:
$eq, $ne, $gt, $gte, $lt, $lte,
$in, $nin, $near.