Repository navigation
[RFC] An explicit evidence contract for text, image hits and Ragas evaluation #7098
jmCalvinhyl
started this conversation in
RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
Related bug report: #7096; focused fix PR: #7097. The original eval-module design is discussed in #153. This RFC follows up specifically on evidence materialization and multimodal generation/judging parity. This discussion concerns the next design step: how should retrieval hits become evidence when resources include images and referring text?
This is not a claim that every OpenViking benchmark uses summaries: the separate
benchmark/RAGimplementation already reads L2 bodies. It is also not a request to change Ragas metric formulas.Why L2 alone is not an evidence contract
An image original can itself be an L2 resource. These are different inputs:
A text-only agent cannot visually inspect an original just because it has the image URI. Conversely, replacing every image hit with a guessed parent Markdown article can create unsupported associations.
Proposed materialization flow
viking://URI.All reads/reference lookups should remain within the caller's authorized scope. Source contents remain untrusted evidence, not workflow instructions.
Synthetic example
viking://resources/demo/guide/page.mdcontains:A hit for
images/flow.pngshould be associated withpage.mdonly after verifying the actual reference. A VLM summary saying “an approval flow” cannot establish an omitted twelve-business-day deadline or the direction of a diagram branch. This example is invented and contains no real corpus data.Generation and evaluation parity
Questions for maintainers
The focused bug fix intentionally avoids automatic backlink discovery or a new multimodal judging architecture. Agreement here would help keep the next contribution narrow and reusable.
AI-assisted proposal. Only public code behavior and synthetic examples are used; no private datasets, documents, questions, answers, service configurations or credentials are attached.
All reactions