Skip to content

feat(recall): grounded reconstruction — answer from top-k only, cite every claim (§05.5) #163

Description

@Jaybhade

Goal: the LLM (strong class, per ADR-0002) answers using only the top-k
reranked memories, formatted as a numbered evidence list; every factual span
carries a [m-id] citation; verbatim where exactness matters (numbers, names).
Per ADR-0005 / §05.5.

Why now: reconstruction is the only place an LLM touches the read path — it
must paraphrase-with-provenance, never answer from parametric knowledge.

How to do it

Acceptance criteria

  • The answer cites only ids that were in the supplied set.
  • An unanswerable query yields an explicit "couldn't find that", no fabrication.
  • Hermetic test via the fake LLM asserts cited-from-set + refusal behaviour.

🔗 Sequencing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: recallAsk verb / read path.priority: P1Important. Needed for the phase, but not blocking the loop.scope: backendExpress API / server-side.size: M2–4 days.type: featureNew capability.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions