Building and Evaluating a RAG-based Menopause Information Chatbot

vira_health · Healthcare · 2023 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Clinical menopause information chatbot

Vira Health needed a chatbot that could answer menopause questions using clinically verified sources, with traceable grounding and safety checks strong enough for healthcare-adjacent use.

Constraints:

Architecture

Vira Health built a RAG chatbot for Stella using peer-reviewed Menopause Society position statements as trusted documents. The system retrieves the top five similar chunks, builds a context prompt, answers with GPT-4, and is evaluated on faithfulness, relevance, harmfulness, and clinical correctness across 40 open-ended questions.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  stella[Stella] --> rag-chatbot[RAG Chatbot]
  rag-chatbot --> retriever[Retriever]
  trusted-clinical-documents[Trusted Clinical Documents] --> retriever[Retriever]
  retriever --> context-prompt-builder[Context Prompt Builder]
  context-prompt-builder --> gpt-4-generator[GPT-4 Generator]
  gpt-4-generator --> evaluation-harness[Evaluation Harness]
  evaluation-harness --> clinical-reviewers[Clinical Reviewers]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Stella Vira Health's digital menopause-care pathway and user-facing product context. RAG Chatbot
RAG Chatbot Answers menopause questions using retrieved trusted clinical sources. Retriever, Trusted Clinical Documents, GPT-4 Generator, Evaluation Harness
Trusted Clinical Documents Peer-reviewed position statements used as the retrieval corpus. Retriever
Retriever Finds top-k similar chunks from trusted documents. Trusted Clinical Documents, Context Prompt Builder
Context Prompt Builder Constructs the prompt that constrains GPT-4 to retrieved clinical context. Retriever, GPT-4 Generator
GPT-4 Generator Generates menopause information responses from the context prompt. RAG Chatbot, Evaluation Harness
Evaluation Harness Scores responses with AI judges and manual clinical review. GPT-4 Generator, Clinical Reviewers
Clinical Reviewers Manually assess clinical correctness and harm risk. Evaluation Harness

Data flow

A menopause question is embedded, matched against trusted clinical documents, the top five chunks are inserted into a context prompt, GPT-4 generates an answer, and AI plus clinician evaluators score the response for faithfulness, relevance, harm, and clinical correctness.

“top five um topk similarity of five so five CH selected trusted documents and used open AI gp4 model um at the time GPT for uh 0125 preview we also built a conversational interface using gradia around this so we could do some more qualitative testing”transcript, stated
“evaluated responses on faithfulness relevance harmfulness and clinical correctness and I'll get into more detail on how I Define each of those in the coming slides um the responses themselves they were independently scored by each of these”transcript, stated

Why this architecture

The RAG design was chosen because clinical menopause support requires traceable, trusted sources rather than free-form model knowledge. The evaluation combined AI judging and clinical review because automated safety signals alone were insufficient for healthcare confidence.

“in our contest it's particularly important to have clinically verified sources and ideally sources that you can reference directly and then lastly it's important to maintain and improve and and reach a clinically defined level of performance so that any responses are Clinic”transcript, stated
“using peer reviewed position statements from The Manor Society so these position statements are clinical guidance”transcript, stated

Models used: GPT-4 · Claude 2.1 · ChatGPT

Scale

Alternatives considered (roads not taken)

Rely on general-purpose model knowledge.

Rejected because: The product needed clinically verified and referenceable sources.

“in our contest it's particularly important to have clinically verified sources and ideally sources that you can reference directly and then lastly it's important to maintain and improve and and reach a clinically defined level of performance so that any responses are Clinic”transcript, stated

Use broad internet or unvetted medical content.

Rejected because: The first system constrained retrieval to peer-reviewed position statements.

“we use these um TMS position statements as our trusted doents we selected four on hormone nony o osteoporosis and genit rary symptoms um some additional technical details um which I'll summarize so we”transcript, stated

Rely only on automated evaluation.

Rejected because: Clinical correctness showed stronger evidence in manual clinical evaluations.

“saw much more evidence of consisting clinical correctness from the manual clinical evaluations themselves so so much higher average there which gave us again good evidence that um this rag system is performing how we' ultimately want it to”transcript, stated

Patterns

rag-retrieval (clinical QA)

The chatbot retrieves top-k trusted clinical document chunks and uses them to constrain GPT-4 responses.

“trusted set of documents design a context prompt that would include those”transcript, stated

safety-policy-enforcement (healthcare safety)

Responses are evaluated for harmfulness and clinical correctness before clinical deployment claims.

“evaluated responses on faithfulness relevance harmfulness and clinical correctness”transcript, stated

llm-as-judge (evaluation)

The evaluation used AI judges alongside manual clinical review.

“strong alignment from the AI judge and the clinical evaluation”transcript, stated

human-in-the-loop-gate (clinical review)

Manual clinical evaluations checked clinical correctness and harmfulness.

“from the manual clinical evaluations themselves”transcript, stated

Tradeoffs

Clinical grounding

Chose RAG over trusted clinical statements over Open-domain chatbot answers.

Rationale: The product needed verifiable clinical sources and referenceable answers.

“have clinically verified sources and ideally sources that you can reference”transcript, stated

Evaluation design

Chose AI judges plus manual clinical review over Single automated score.

Rationale: Clinical correctness and harm risk benefit from clinician judgment.

“saw much more evidence of consisting clinical correctness from the manual clinical evaluations themselves”transcript, stated

Corpus scope

Chose Small peer-reviewed statement set first over A broad medical corpus from day one.

Rationale: A narrow trusted set improves initial safety and faithfulness but needs expansion later.

“we use these um TMS position statements as our trusted doents”transcript, stated

Gotchas (what bit them)

Clinical chatbot answers require trusted provenance.

Root cause: Unconstrained model answers can be unverified or harmful in healthcare contexts.

Resolution: Restrict the corpus to peer-reviewed position statements and cite retrieved context.

“it's particularly important to have clinically verified sources and ideally sources that you can reference”transcript, stated

Safety evaluation still requires further research.

Root cause: Biases and potential harms remain before integration into broader care workflows.

Resolution: Treat the prototype as a foundation and expand research before clinical deployment.

“more research is required to look at some of the biases and other potential harms before you look at integrating this”transcript, stated

A narrow trusted corpus limits answer coverage.

Root cause: The prototype used only a small set of position statements.

Resolution: Integrate a wider range of trusted peer-reviewed sources.

“integrating a wider range of trusted peer-reviewed sources Beyond just clinical um guidelines”transcript, stated

Evaluation

Vira Health evaluated 40 open-ended questions with AI judges and manual clinical review across faithfulness, relevance, harmfulness, and clinical correctness.

Metrics: Faithfulness · Relevance · Harmfulness · Clinical correctness · Clinician review alignment

“evaluated responses on faithfulness relevance harmfulness and clinical correctness”transcript, stated
“this automated faithfulness score um scored very highly at 95%”transcript, stated

Outcomes

The pilot used 40 open-ended questions, top-five retrieval, and a narrow trusted corpus of Menopause Society position statements.

“harmfulness was almost exclusively assessed as as not harmful across all these responses”transcript, stated
“shown High clinical correctness and a low risk of harm in the responses”transcript, stated