Skip to content

feat(chat): answer verification pass - claim-to-chunk grounding check and second-model or self-consistency check #20963

Open

Description

@mrveiss

Gap

Grounding is prompt text only (#20847: empty/below-threshold retrieval still yields a free answer); post-generation grounding is open as #16533. There is no self-consistency sampling and no second-model verification of answers or of retrieved facts before use.

Scope

Claim extraction, entailment/support check of each claim against the cited chunk, optional second-model verdict for high-stakes answers; unsupported claims are flagged or removed. Builds on #16533 and #20847 (link, do not duplicate).

Acceptance

  • Grounding rate computed per answer and exposed; benchmark tracks it.
  • Self-consistency/second-model pass is opt-in per risk class and measured for cost and gain.

Parent: #20948. Chat path audited from conversation_aware_retrieve (services/knowledge/service.py:696) -> retrieve_relevant_knowledge -> RAGService.advanced_search (services/rag_service.py:544).

Maintainer requirement (2026-11-06): "AutoBot's knowledge base must be able to combine every useful knowledge representation and retrieval technique, so answers get the best result" and "crosschecks". Accepted only when the retrieval benchmark gate shows the combination is better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions