Skip to content

Implement query expansion with multi-query hybrid retrieval and RRF fusion #12

@aurexav

Description

@aurexav

Context
We want higher recall and fewer misses than single-query hybrid retrieval. QMD expands the query and fuses multiple ranked lists with RRF.

Goal
Increase recall without sacrificing precision by expanding queries and fusing results deterministically.

Scope

  • Add a query expansion step with configurable provider and expansion count.
  • Run hybrid retrieval for the original query and expansions.
  • Fuse results with RRF and weight the original query higher.
  • Keep the existing rerank step and tie-breaker logic.

Acceptance Criteria

  • Recall improves on a representative evaluation set.
  • Disabling expansion preserves current behavior.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:perfPerformance and efficiency improvements (latency, throughput, storage, cost).kind:specSpecification or contract definition (APIs, schemas, invariants, query semantics).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions