Spec spec_043
SPEC-043: HyDE Query Reconstruction
v3 · draft · Owner: Q
HyDE (Hypothetical Document Embeddings): generate a hypothetical answer to the query locally → embed THAT for retrieval instead of the question. The hypothetical lives in the same semantic space as stored principles. Privacy preserved: generated locally, embedded locally, discarded with embed-and-discard pattern.

Definition

Anam #09: "Direct query embedding fails for indirect, compositional, and retrospective queries."

Proposed: HyDE (Hypothetical Document Embeddings): generate a hypothetical answer to the query locally → embed THAT for retrieval instead of the question. The hypothetical lives in the same semantic space as stored principles. Privacy preserved: generated locally, embedded locally, discarded with embed-and-discard pattern.

Research: A/B test vs direct embedding on first 50 ingested documents. Measure retrieval precision improvement.

Changelog

v3 2026-04-05 Q Mapped to whitepaper sections

v2 2026-04-05 Q Imported SPEC-043 from model_specifications_v2.html

v1 2026-04-05 Q Created spec: SPEC-043: HyDE Query Reconstruction