B-246 Creation and Validation of a Clinical Chemistry Companion for Procedures & Operations (C3PO)
Ryan Pearce, Zachary Sandborgh, Brigitte Bagtuna, Jeffrey Meeusen
Key points
From the paper's conclusion- These findings motivated mandatory inline source citations to support clinical accuracy verification and suggest an optimized architecture in which RAG serves as a rapid document identification layer with final response generation delegated entirely to long-context analysis of complete source documents.
Abstract
Background Clinical laboratories manage a dynamic and ever-expanding collection of standard operating procedures (SOPs) to support testing, quality assurance, and regulatory compliance. We created an SOP Assistant to help staff rapidly access current information, often spread across multiple documents, using retrieval-augmented generation (RAG) and long-context analysis to ensure responses remain grounded in verified SOP content. The objective of this study was to develop and validate the accuracy and relevance of SOP Assistant responses to ensure they remained grounded in verified SOP content. Methods The SOP Assistant was built on Google Cloud Platform Vertex AI RAG Engine, indexing SOPs spanning 10 laboratory departments and over 1,300 documents. SOPs were chunked and embedded into a vector database using the text-embedding-005 model and Gemini 2.5 Flash parser to give context-preserved chunks. Responses were streamed using a Gradio-based chat interface, containerized with Python 3.11 slim and deployed on Cloud Run. Two query modes were created: "Quick Lookup," which retrieved and analyzed the top 15 relevant document chunks via RAG with re-ranking, and "Deep Analysis," which retrieved the top 5 SOPs and prompted users to select up to three for comprehensive evaluation by long-context analysis. Final responses were generated with Gemini 2.5 Flash at temperature 0.1 to prioritize deterministic, factually grounded output. We developed 100 queries targeting specific challenge types: direct fact retrieval (n=30), conditional logic (n=30), sequential procedural information (n=20), negative/exclusionary (n=10), and vague/disambiguation (n=10). Queries spanned >20 SOPs covering analytes such as potassium, AST, troponin, HDL cholesterol, direct bilirubin, CBCs, and heparin anti-Xa, and workflow SOPs covering instrument maintenance and specimen handling. Responses were graded using a 5-point Likert scale for accuracy and relevance. Accuracy scores of 5 required complete factual concordance with SOPs, including units, values, and conditional logic. Relevance scores of 5 indicated precise, non-extraneous answers. Hallucination count and severity were also recorded. Results Average accuracy and relevance scores were calculated for each query type: direct fact retrieval (4.8/4.7), conditional logic (4.9/4.8), sequential procedural information (4.5/4.8), negative/exclusionary (5.0/4.7), and vague/disambiguation (5.0/5.0). One severe hallucination was noted in a direct fact retrieval query using Quick Lookup mode related to uric acid. Deep Analysis mode did not produce hallucinations. Conclusion Validation through targeted query assessment revealed gaps that drove iterative improvements to the SOP Assistant. RAG-only Quick Lookup produced minor hallucinations when queries spanned multiple SOPs covering similar analytes across different work areas, while Deep Analysis long-context mode generated no hallucinations on complex procedural queries. These findings motivated mandatory inline source citations to support clinical accuracy verification and suggest an optimized architecture in which RAG serves as a rapid document identification layer with final response generation delegated entirely to long-context analysis of complete source documents. This approach leverages the complementary strengths of each method while minimizing the hallucination risk inherent to chunk-based retrieval alone. Validation also uncovered minor SOP wording inconsistencies, suggesting additional utility for this tool as a quality assurance mechanism.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Retrieval-augmented generation for interpreting clinical laboratory regulations using large language modelsJournal of Pathology Informatics · 2025
- ClinLab-RAG: A Multimodal RAG System for the Early Verification of Risks in Medical Equipment Supply ChainsMathematical and Computational Applications · 2026
- ClinAgent: AI-assisted methodology for clinical trial data processing and statistical programming.Biology methods & protocols · 2026
- A Cloud-Enabled LIMS-QMS Platform With Large Language Model-Assisted Standard Operating Procedure Generation for GLP/GMP-Aligned Theranostics Laboratory Operations.SLAS technology · 2026
- From Algorithm Performance to Laboratory Deployment: A Critical Review of Artificial Intelligence in Clinical Chemistry.Molecules (Basel, Switzerland) · 2026
- 4 Artificial Intelligence in Clinical Laboratory: A Tool for Laboratory Document ReviewAmerican Journal of Clinical Pathology · 2026