/** * HyDE — Hypothetical Document Embeddings for code search. * * Instead of embedding the raw query ("how does auth work?"), we ask the LLM * to write a short hypothetical card that would answer the question, then * embed THAT. The resulting vector is much closer to real card vectors because * it uses the same vocabulary (class names, file roles, technical patterns). * * BM25 always uses the original query. HyDE only affects the semantic leg. * * References: Gao et al. 2022, "Precise Zero-Shot Dense Retrieval without * Relevance Labels" — arXiv:2212.10496 */ /** * Generates a hypothetical card for the query and returns its embedding. * Returns null if HyDE should be skipped, LLM is unavailable, or times out. */ export declare function hydeEmbed(query: string): Promise; //# sourceMappingURL=hyde.d.ts.map