Skip to content
All work

AI assistant for a clinical records system

Healthcare. In production.

A RAG assistant inside a patient records system that answers physicians’ questions with cited sources, and says so when it can’t answer.

  • RAG
  • Guardrails
  • LLM evaluation
  • React

Use case

Physicians need quick answers from dense patient and clinical records. In healthcare an answer is only useful if you can trace it back to its source, and the system has to know when not to answer.

Constraints

  • Patient data is sensitive, so inputs and outputs are validated and protected.
  • The assistant lives inside the existing records workflow, not in a separate tool.
  • A confident wrong answer is worse than no answer.

What I built

  • The retrieval pipeline: chunking, embeddings and semantic search over source content.
  • Grounded generation, with the sources cited next to every answer.
  • Guardrails: input and output validation, sensitive-data protection, grounded-answer checks and low-confidence fallbacks.
  • Evaluation and monitoring of answer relevance, faithfulness and accuracy in production.
  • The full-stack platform around it: REST API integrations, front-end modules and a shared React component library.

Trust comes from being able to check the answer, not from how confident it sounds.

How it works

Clinical AI assistant: request pathA physician's question passes input guardrails, then retrieval runs semantic search over chunked, embedded source content. The LLM writes an answer from what was retrieved. A grounding check either returns a cited answer, or, when confidence is low, falls back to saying it can't answer. Evaluation and monitoring watch the model and the answers in production.PhysicianquestionInput checksvalidate, maskRetrievalsemantic searchSourcesvectorsLLMdrafts answerGroundingcheckFallbackno answerCited answerlinks to sourceEvaluation, monitoringrelevance, faithfulness
Request path. Retrieval and the grounding check decide whether the assistant answers at all.
Next case studyRoad defect detection with human review