Skip to content

feat(rag): cross-source corroboration - docs vs code vs facts vs memory, conflicts flagged not silently picked #20962

Open

Description

@mrveiss

Gap

Hits from different buckets are merged by score (rag_service.py:643) with no check that they agree. When docs say one thing and code or a fact says another, the prompt receives both unlabelled (or the higher scorer wins). build_grounded_context only numbers the sources.

Acceptance

  • Claims backed by 2+ independent buckets are marked corroborated; conflicting hits are presented as a conflict with both sources and recency.
  • Contradiction rate reported by the benchmark.

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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions