Skip to main content
@moss-dev/moss / QueryOptions

Interface: QueryOptions

Optional parameters for semantic queries.

Properties

PropertyTypeDescription
embedding?number[]Caller-provided embedding vector. When supplied, the service/client skips embedding generation.
topK?numberNumber of top results to return. Overrides method-level defaults.
alpha?numberWeight for hybrid search fusion. 1.0 = pure semantic, 0.0 = pure keyword. Default 0.8.
filter?MetadataFilterOptional metadata filter applied to the query. Supports field conditions and $and / $or composition. See FilterCondition for supported operators.