Skip to content

Add LLM cache for query expansion and reranking #18

@aurexav

Description

@aurexav

Context
QMD caches LLM outputs to keep query expansion and reranking consistent and inexpensive on repeated queries.

Goal
Reduce latency and cost for repeated queries while keeping outputs consistent.

Scope

  • Cache expansion and rerank results keyed by query, model, and version.
  • Define cache invalidation rules and a retention policy.

Acceptance Criteria

  • Repeated queries avoid redundant LLM calls without correctness regressions.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:perfPerformance and efficiency improvements (latency, throughput, storage, cost).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions