Anyway, I Shipped It

A blog by Helen.

Citizen Health

Part 1: From April, 2026

There was a job posting for a company called Citizen Health. Their mission is amazing - they are building an AI advocate that specializes in rare and complex disease patients and caregivers. They help patients to understand their medical history, prepare for appointments, and advocate for the care they need. There are more features (notetaking during appointments, drafting insurance documents, exploring treatment options, etc) but in summary, a great mission and they can potentially make a real difference for a lot of people going through the hardest time in their lives.

This one was close to home for me - I lost a parent to ALS, and I know how hard it can be to go through that and would love to contribute to helping other people in that situation.

One thing that stood out to me looking at their demo images is that it isn't passive. What I mean by that is that it's not just like "here is what this says" - it seems to have a focus on making the user feel proactive. Their homescreen has sections like "prepare for your next visit", and a section "what is your mission today?" - I think this frames it in a way that puts the patient in control: they have a mission, they can take action. I don't know if that was their actual intention… but I think there is high value in that framing.

PLAN TIME

For my demo, I wanted to re-create a small portion of Citizen Health's product - so I mimicked their ability to intake something - a clinical report, test results, a technical email - put it in plain English, and allow users to ask questions. Furthermore, I wanted to have that proactive angle included too - so I made the goal of this be "prepare for your next appointment".

Given these are complicated documents with medical terminology, and given the patient or caregiver receiving these are probably going through the hardest thing they've ever experienced, I didn't want the breakdown to be a massive wall of text. I thought it would be better to break it into chunks. So, I started a conversation with my friendly Claude.ai agent to discuss what these chunks should be, and together we came up with 5 staged cards:

  1. What this document is - to give some orienting context
  2. The main finding - the diagnosis or key result, with one sentence acknowledging the emotional weight before the clinical explanation
  3. What the tests showed
  4. What happens next - medications, referrals, next appointments - something actionable
  5. Questions to bring to your appointment - four specific questions pulled from the actual details in the document, not generic advice

After sending their document, the user receives one card at a time, and can either ask questions or continue to the next card. This gives them time to process and understand, while still having the next step waiting for them.

I also wanted to include a RAG pipeline that would have a corpus made up of a select number of rare diseases from reliable sources (NIH, PMC, etc). In terms of practicality - that seemed like a bit of a stretch to do in a day-ish (mind you, this was all the way back in April). I could have implemented a pipeline, but given the sensitive nature of this subject - I didn't want to do it poorly. More about that further down!

On the sensitive nature of the Healthcare Industry:

Healthcare and patient privacy is obviously of utmost importance, and I did plan with that kind of in mind. For a demo app, I wasn't going to use a HIPAA compliant tier with Anthropic for my API calls, it wouldn't be SOC2 certified, I have no clinical oversight layer, and I am sure there is much, much more that I missed or omitted. But I still needed a user to be able to actually give it some sort of clinical text to see that it works. So instead I included sample clinical documents - that way the user (in this case, a member of the Citizen Health team) could use a realistic, but completely fabricated document without having to make their own. (Note - I also included notices everywhere that this was not HIPAA compliant and no real information should be used. It's on the app, and there is a really thorough "known limitations" section of the ReadMe on github.)

RAG implementation:

What is RAG?

For anyone not familiar - RAG is Retrieval Augmented Generation. In a sentence - you take a body of information, break it into chunks, and embed each chunk (meaning convert it into a long list of numbers that encodes its meaning) into a vector DB. At query time, your question gets matched against that DB, pulls the most relevant chunks, and sends them to the AI alongside your query. You can think of it as a really smart library index - one that understands meaning, not just keywords, so "cardiac arrest" and "heart attack" would be next to each other in the context library.

After I set up the basic version of this app, I did try to just see if a RAG was possible and reliable. A few things went wrong here. I gathered a corpus for the two diseases included in the sample documents, and then implemented the retrieval layer. My first mistake - not cleaning up the corpus! Rookie error here - by not cleaning up the raw documents before chunking and embedding them, the retriever was matching against junk, and everything downstream inherited that mess.

On Reflection my initial RAG:

The agent layer was over-engineered relative to the retrieval layer. I spent the bulk of my design effort on a four-stage agent pipeline:

classify intent synthesize from sources rewrite with empathy audit for hallucinations

All that was built using the retrieval stack that underthought: fixed-size token chunks (that were chunked with paragraph and page breaks not taken into account), no rerank, no query rewrite, no metadata beyond a filename, and no evaluation harness. Huge mistake - despite the intensity of multi-agent vetting, the information given back with odd or off-topic questions was nonsense.

That caused a lot of trouble. I asked if the sky was blue and it gave back a bunch of info on something with blue in the title (that sounded made up, but I believe it was in the corpus). The guard agent can only verify against chunks the retriever surfaces, so when retrieval misses the right passage the guard happily rates the weirdly wrong answer as well-grounded. The tone agent then warmly delivers that wrong answer in plain English (after passing its audit with the same bad passage), which is the most dangerous possible failure mode for a medical assistant - confident, friendly, and unsupported.

So - lesson learned: to give you a plumbing metaphor: start with the plumbing - fancy fixtures don't matter if there's shit spewing through the drains.

Part 2: November, 2026

So - I drafted part 1 for this and was working on implementing the RAG properly in the hopes of adding it to the conclusion. Devastatingly, I lost another parent. This project was dropped and it was a very long time before I was ready to come back to it.

However, given how rapidly AI has changed over the course of this year alone, I decided to do something I wouldn't have in April - I pointed Devin at the repos for my initial failed RAG, and my progress for the new one, evaluate both, and then come up a new RAG implementation based on its feedback.

Now, Devin had some great feedback about the initial one, and was confident that the second version had good bones, so it focused on that. It made a working RAG in a one shot session, and it seemed awesome…. but the thing I keep running into with AI on kind of more complex problems is that it tends to focus on bandaid solutions if you aren't careful. I asked to diagram the process from input to agent responses, and asked it to critically evaluate the design, and it caught two big issues:

  1. the agent ran the input, got back the answer, did an audit for accuracy and then rewrote for tone. That means (alarmingly) that the tone rewrite could overwrite correct information - the order was supposed to have the audit happen after tone to make sure nothing substantial was changed.
  2. given the models out there and the scope of this project, it actually makes more sense to do this all in one call so its not playing a game of telephone here - my goal when this started was to have these safeties, but having it set up as it was with the multi agent layers was a hindrance in this situation.

One really cool thing I really enjoyed doing for this new version was having a kind of preview section of the corpus - so that you could see where the info was coming from, and then actually look at the references to make sure the RAG was working correctly.

So, anyways - I did send Citizen Health the demo, but didn't get a an interview… or even a response lol. I do have both versions live - so check them out:

Anyways - I shipped it.