ORVS in RheumAI
ORVS means Optimistic Response Verification System. Erick Zamora published the reference document as a preprint on March 28, 2026. Its DOI is 10.55277/researchhub.qq2fdvw9.[1]
In RheumAI, ORVS is a review after generation. It evaluates the response of the model. It does not directly check if the input clinical note contains all the fields that BIOBADAMEX requires.
| Term | Meaning |
|---|---|
| ORVS | Optimistic Response Verification System. A review of the generated response. |
| Preprint | The ORVS reference document [1]. |
| Evaluator | The model that scores the response. |
| Dimension | One criterion that the evaluator scores, for example clinical accuracy. |
| Regeneration | A new generation of the response after a failed score. |
| PMID gate | The deterministic control that compares the cited PubMed IDs with the IDs retrieved in the turn. |
| Turn | One request and its response. |
Preprint and current code
Section titled “Preprint and current code”The preprint and the current code do not have the same contract. The preprint describes a rubric with four dimensions, a maximum of three cycles and human escalation.[1] Normal chat uses the legacy version with six dimensions. It tries one regeneration. It has no ORVS queue for human escalation.
The v2 modes are experimental extensions. Quick uses four dimensions and Deep uses eight. The weights of Quick are similar to the preprint. But the meanings of TMP and RSC changed. In the current code, TMP means temporal reasoning and RSC means therapeutic completeness.
Conceptual flow
Section titled “Conceptual flow”ORVS does these steps. The numbers in Figure 1 are the numbers in this list.
- RheumAI generates a response from the question and the retrieved evidence.
- An evaluator model scores the response on several dimensions.
- If the score is low, RheumAI can generate the response again or add a targeted addendum.
- A separate control compares the cited PubMed IDs with the IDs retrieved in that turn.
- The system returns the result. If the time runs out, it applies a fallback.
Implementations in the repository
Section titled “Implementations in the repository”Normal chat
Section titled “Normal chat”Normal chat calls the v1 verification for clinical requests and for questions that are not trivial. The evaluator scores six dimensions from 0 to 100:
- citation accuracy;
- clinical accuracy;
- specificity;
- evidence alignment;
- response completeness;
- absence of contradictions.
The threshold is 70. If the score fails, normal chat tries one regeneration with the evaluator flags. In this normal path, ORVS does not review the regenerated response again.
Explicit comparison modes
Section titled “Explicit comparison modes”A client that sends pipelineMode can select quick-orvs or full-orvs:
| Mode | Dimensions | Purpose |
|---|---|---|
| Quick ORVS v2 | clinical accuracy, safety, temporal reasoning, therapeutic completeness | Fast review |
| Deep ORVS v2 | the four above, plus completeness, citations, clarity and bias | Wider review |
V2 calculates a composite score from 0 to 100. It can regenerate the response or append targeted corrections, a maximum of two times.
Citation controls
Section titled “Citation controls”The chat flow adds deterministic PubMed rules:
- If RheumAI retrieved PubMed evidence and the response has no inline PMID, the flow can regenerate the response.
- The flow permits only the PMIDs that it retrieved in the current turn.
- The flow replaces each remaining PMID that is not permitted with
[unverified PMID].
These rules are more deterministic than a model that decides if a citation looks plausible.
Important limits
Section titled “Important limits”- ORVS evaluates generated output. It does not prove that a recommendation is clinically correct.
- The evaluator is also a model. It can make errors.
- The preprint describes a proposal and retrospective experiments with constructed scenarios.[1] It does not show clinical outcomes, regulatory approval or safety for autonomous use.
- In the current code, a parse error or an API error can return a result marked
passedwith error flags. This is fail-open behavior. It is not a successful validation. ORVS_ENABLED=falsedisables the verification.- The stateless study route does not explicitly run a final ORVS pass after
REPLY. - ORVS “completeness” asks if the response covers the question. It is not chart completeness or registry completeness.
Relationship to note completeness
Section titled “Relationship to note completeness”BiobadamexAI needs two separate evaluations. Figure 2 shows them.
- Note completeness: each applicable registry field is present, missing, unknown or not applicable.
- Response quality: the explanation of RheumAI is accurate, safe, aware of the evidence, clear and useful.
ORVS can support the second evaluation. The first evaluation needs an explicit clinical schema and field-level provenance. Refer to Clinical notes and completeness.
Code evidence
Section titled “Code evidence”Sources
Section titled “Sources”[1] Optimistic Response Verification System. Preprint, March 28, 2026. https://www.researchhub.com/post/32066/optimistic-response-verification-system