query/transform is gated by transform. It exposes query transformation as
a standalone step so a client orchestrating its own agentic retrieval loop can
plan queries before recall. (A server can also apply the same transforms inside
retrieve via the rewrite option.)
Params
string
required
The original query.
"rewrite" | "hyde" | "multi-query" | "decompose" | "step-back"
required
The transformation to apply. MUST be one of the advertised
transform.methods.integer
How many queries to produce (for
multi-query / decompose).Result
string[]
The transformed queries.
multi-query/decompose return several; rewrite
and step-back return one.string
For
hyde, a hypothetical answer document the client then embeds and uses
as the search vector.The transformations
rewrite
Clean up and disambiguate a raw user query.
hyde
Generate a hypothetical answer; embed it instead of the question
(Hypothetical Document Embeddings).
multi-query
Produce several paraphrases to widen recall, then fuse the result sets.
decompose
Break a complex question into answerable sub-questions.
step-back
Ask a more general “step-back” question to retrieve grounding principles.