AI-Assisted Quarto Reporting for Oncology Studies
June 16, 2026
Problem Space
Previous Work
New Approaches
Demo
Future
Thinking…
Quarto on Connect
Scheduled Quarto doc lives and runs on Posit Connect
Query Data
Queries the SQL warehouse for the most recent oncology trial data
Save as Pin
Saves results to Posit Connect as a versioned Pin dataset
Report data ready
Primary use feeds a second scheduled Quarto report on Connect
Secondary uses include ad hoc analysis and additional reporting
Read Pin
Quarto report reads the pinned dataset from Connect
Build visuals
Quarto renders oncology charts, graphs, and tables from the pin data
LLM interprets
ellmer sends chart images to the internal LLM service for narrative interpretation
Render report
Interpretation returned, woven into the Quarto document and stored on Connect. Source published, previous reports accessible
Email to users
Report e-mailed automatically to users on schedule
Study documents
Ragnar processes study documents (e.g. CSP, SAP, IDRP) and others into context
Saves context in a reusable vector store (DuckDB)
LLM interprets
ellmer sends chart images to the internal LLM service for narrative interpretation; study information provided as context
Render report
Richer interpretations returned, grounded in study context
Most of this experiment is for feasibility
Continue the journey by refining the pipeline, prompts, and guardrails as we learn
Explore pins storage backends, including AWS S3 buckets
Embed prior reports in the RAG process to surface the delta and journey of issues, findings, and insights over time
Onboard new users to gauge receptiveness and gather further feedback
R/Pharma genAI Day 2026 · Matthew Kumar