Skip to content

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.

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.

ORVS does these steps. The numbers in Figure 1 are the numbers in this list.

ORVS review sequence across the generator, RheumAI and the evaluatorLLMGeneratorchat flowRheumAIORVS · LLMEvaluatorA clinical question arrives1 · question + retrieved evidence1 · response2 · score the dimensions2 · score + flags3 · low score: regenerate or addendum3 · new response4 · PMID gate: cited vs retrieved5 · result, or fallback on time-out
Figure 1. ORVS review sequence. Time goes down. Dashed arrows are replies. Step 3 (gray) occurs only after a low score.
  1. RheumAI generates a response from the question and the retrieved evidence.
  2. An evaluator model scores the response on several dimensions.
  3. If the score is low, RheumAI can generate the response again or add a targeted addendum.
  4. A separate control compares the cited PubMed IDs with the IDs retrieved in that turn.
  5. The system returns the result. If the time runs out, it applies a fallback.

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.

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.

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.

  • 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 passed with error flags. This is fail-open behavior. It is not a successful validation.
  • ORVS_ENABLED=false disables 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.

BiobadamexAI needs two separate evaluations. Figure 2 shows them.

  1. Note completeness: each applicable registry field is present, missing, unknown or not applicable.
  2. Response quality: the explanation of RheumAI is accurate, safe, aware of the evidence, clear and useful.
Two separate evaluations: note completeness from a clinical schema, and response quality from ORVS1 · note completenessinputClinical noteClinical schema+ field-level provenanceNote completeness4 states for each field2 · response qualityREPLYRheumAI responseevaluatorORVSpost-generation reviewResponse qualityaccurate · safe · clearORVS reviews the response only. It does not review the note.
Figure 2. Two separate evaluations. Arrows show the data flow. Each dotted frame is one evaluation. ORVS is only in evaluation 2.

ORVS can support the second evaluation. The first evaluation needs an explicit clinical schema and field-level provenance. Refer to Clinical notes and completeness.

[1] Optimistic Response Verification System. Preprint, March 28, 2026. https://www.researchhub.com/post/32066/optimistic-response-verification-system