import { ModelContract } from "../../contracts/model.contract.mjs"; //#region ../ai/src/rag/transforms/multi-query.d.ts /** Options for {@link multiQuery}. */ type MultiQueryOptions = { /** How many alternative phrasings to request. Default 3. */n?: number; /** Include the original query in the returned list. Default true. */ includeOriginal?: boolean; }; /** * Multi-query expansion (A4) — ask a model for several alternative * phrasings of `query`, so retrieval covers vocabulary the original * wording missed (synonyms, specificity, rephrasings). Pair the variants * with {@link hybridRank} / a vector search and fuse the per-variant hits. * * Deterministic, dependency-light parsing: the model is asked for one * query per line; bullets / numbering are stripped, blanks dropped, and * the set is de-duplicated. Returns the original (unless opted out) plus * up to `n` variants. * * @example * const queries = await multiQuery(model, "how do I cancel?", { n: 3 }); * // → ["how do I cancel?", "cancel my subscription", "end my plan", ...] */ declare function multiQuery(model: ModelContract, query: string, options?: MultiQueryOptions): Promise; //#endregion export { MultiQueryOptions, multiQuery }; //# sourceMappingURL=multi-query.d.mts.map