Last updated: November 30, 2026. By Sam Hart, founder of Hathr.AI.
Key takeaways
- Agentic RAG gives the model a search tool and lets the model decide what to search for, whether to search again and when to stop. Single-shot RAG retrieves once, before the model answers.
- In a 400-page chart, heart failure evidence sits in echo reports, discharge summaries and progress notes, under abbreviations like CHF and EF, so one search returns some passages and misses others.
- Hathr.AI's agent searches each customer's own vector index, and Hathr.AI's server sets that index and the document scope from the session, as the AWS-published Hathr.AI tenant isolation design explains (AWS Storage Blog, November 2026).
- Hathr.AI caps searches per turn inside the search tool and logs refused searches, so a looping agent or a poisoned document can't run up calls.
- Hathr.AI surfaces evidence with citations. The hospice physician or reviewer makes the eligibility decision.
To test agentic search on your own record, upload a chart to Hathr.AI and ask for heart failure eligibility evidence with citations.
What is agentic RAG?
Agentic RAG is retrieval-augmented generation in which the model calls search as a tool, reads what comes back, and decides whether to search again with different terms. Classic RAG embeds the user's question once, pulls the closest chunks and hands them to the model in one pass. The agentic version adds a loop: search, read, refine, search again, answer. Builders assemble that loop with an agent framework such as Strands Agents, LangGraph or LlamaIndex; Hathr.AI uses Strands Agents.
Hathr.AI published its implementation with AWS. Hathr.AI sends questions to a Strands Agents service on Amazon ECS with AWS Fargate, and Claude in Amazon Bedrock decides whether and what to search. Hathr.AI's search tool queries that customer's Amazon S3 Vectors index, loads the matching chunk text from Amazon DocumentDB and returns the text to the model, which can rephrase and search again (AWS Storage Blog, November 2026).
In Hathr.AI, the model controls two inputs: the query text and the number of results. Hathr.AI's server sets the tenant index and the document scope from the authenticated session, using document_id metadata so a search covers only the files the user selected. That split keeps a prompt injection buried in an uploaded chart from steering retrieval into another customer's index. The guide to prompt injection in RAG systems covers that attack in detail.
Call a design agentic only when the model can choose its next query after reading the last result.
Why does single-shot retrieval miss evidence in a 400-page chart?
Single-shot retrieval misses evidence because a 400-page chart scatters the facts behind one question across many documents and many vocabularies, and one query vector lands near only some of them. A reviewer's question about hospice criteria for heart failure sits closest, in embedding space, to passages that discuss hospice and heart failure in general terms. The echo report that states the ejection fraction uses neither phrase.
Two forces work against a single search:
- Vocabulary drift. Clinicians write CHF, HFrEF, congestive heart failure and EF in different notes. A search worded one way ranks the other forms lower.
- Scatter. Hospitalizations appear in separate discharge summaries months apart. A fixed result count fills up with near-duplicate passages from one admission and drops the others.
A single search answers the question the user typed. An eligibility review needs answers to the questions the reviewer didn't type: the latest ejection fraction, the date of the last admission, and whether symptoms occur at rest.
| Evidence the reviewer needs | Where it sits in the chart | Why one search misses it | The agent's follow-up search |
|---|---|---|---|
| Heart failure diagnosis | Problem list, history and physical, discharge summaries | Notes switch between CHF and congestive heart failure | Rephrases CHF as congestive heart failure |
| Ejection fraction | Echocardiogram reports, cardiology notes | Reports give EF and a number and never mention hospice | Searches for ejection fraction as its own query |
| NYHA class IV or symptoms at rest | Cardiology and progress notes | Function appears as narrative, such as dyspnea at rest | Searches for symptoms at rest and NYHA class |
| Recent hospitalizations | Discharge summaries and ED notes across months | Top results fill with passages from one admission | Searches for hospitalizations and admissions as a separate query |
Before Hathr.AI moved vector search to Amazon S3 Vectors, Hathr.AI limited retrieval to one search per question because of latency and memory pressure on its database cluster. Hathr.AI and AWS documented the cost: a single static retrieval misses some of the passages an eligibility review needs (AWS Storage Blog, November 2026). From the summer 2026 cutover through 12 November 2026, Hathr.AI measured under 100 ms average query latency and zero failed vector-search requests, which lets the agent run several searches in one turn.
I recommend testing any record-review tool on a chart where the key fact sits under an abbreviation your question doesn't use.
Worked example: agentic search on a heart failure hospice chart
In the worked example from Hathr.AI's AWS write-up, a hospice reviewer asks about heart failure eligibility, and the agent searches for ejection fraction, then for recent hospitalizations, then rephrases CHF as congestive heart failure when the chart uses the long form. A typical Hathr.AI user for this workflow is a hospice nurse who uploads a 400-page chart, gets an eligibility summary and deletes the file.
The clinical frame is familiar to hospice teams: NYHA class IV symptoms, ejection fraction and recent hospitalizations, read together with the rest of the record. The heart failure hospice eligibility criteria guide covers the criteria in full. The sequence below follows the published architecture.
- Upload. Hathr.AI starts an AWS Step Functions workflow for the file. AWS Lambda parses and chunks the chart, calls an embedding model in Amazon Bedrock, and writes each embedding to that customer's S3 Vectors index with
document_idas filterable metadata. - Question. The nurse asks whether the chart supports hospice eligibility for heart failure. Hathr.AI's server fixes the index and the selected document before the model sees the question.
- Search for ejection fraction. The agent pulls echocardiogram and cardiology passages.
- Search for recent hospitalizations. The agent pulls discharge summaries from separate admissions.
- Rephrase. The chart spells out congestive heart failure, so the agent rewrites CHF into the long form and searches again.
- Answer. The agent returns an eligibility summary that cites the passages behind each finding, for the nurse to verify.
- Delete. The nurse deletes the file. Hathr.AI calls DeleteVectors on that customer's index in batches of 500 and removes the chunks from DocumentDB, as the patient data deletion walkthrough describes.
Each Hathr.AI web app account includes a signed BAA, accepted electronically at signup, so a hospice team can upload PHI on day one. Upload a CHF patient's chart to Hathr.AI and ask for ejection fraction, NYHA class and hospitalizations with citations. Teams running this review at admission volume can see Hathr.AI for hospice eligibility and admissions.
Ask for each criterion as its own line item with its source, so the reviewer can check each one against the chart.
How does Hathr.AI keep an agent from looping?
Hathr.AI caps the number of searches per turn inside the search tool, using a per-request counter, logs each refused search, and keeps turn limits as a backstop. A limit written into the system prompt depends on the model obeying the prompt. A counter in server code holds regardless of what the model writes.
The cap matters most when the chart itself is hostile. OWASP ranks prompt injection first in its list (OWASP Top 10 for LLM Applications, 2025, LLM01). A scanned page carrying hidden text that tells the model to keep searching hits the same ceiling as a confused model. The server-set index and document filter apply to each search the agent runs, whatever query text the agent writes.
| Control in Hathr.AI's agent | What it stops | Where it runs |
|---|---|---|
| Per-turn search cap | Runaway search loops, including loops a document tries to trigger | Search tool code, per request |
| Turn limit | Conversations that exceed the cap through repeated turns | Agent runtime, as a backstop |
| Server-set index and document scope | Retrieval from another customer's index or from unselected files | Server, from the authenticated session |
| Separate IAM roles | The agent writing to or altering a tenant index | AWS IAM: the ingestion role writes, the agent runtime role only queries |
For the storage side of that isolation, see how to isolate patient record embeddings in a vector database; for every other component a HIPAA agent needs, see the Bedrock agent build checklist.
Hathr.AI won't rely on the model to police its own search budget.
When is agentic search worth the extra calls?
Agentic search is worth the extra calls when the answer depends on several facts spread across a long record under different wording. For short documents and single-fact lookups, one search or a full read costs less and answers as well.
Eligibility reviews, medical necessity checks, prior authorization packets and record review for litigation fit the agentic pattern. A ten-page consult note does not: the model can read the whole note in context.
Exhaustive lists need a third approach. In a benchmark of 30 synthetic, scanned and faxed SNF referral packets, Hathr.AI reading every page listed 158 of 160 seeded NTA comorbidities (98.8%), against 39.4% for Hathr.AI's own search-based retrieval on the same packets and scorer (Hathr.AI SNF PDPM benchmark, October 2026). That recall cost precision, 82.1% against 86.8% for search, and strict citation accuracy, 77.3% against 86.7% (Hathr.AI SNF PDPM benchmark, October 2026). The packets were synthetic, so those figures don't describe real patient charts.
| Task shape | Better approach | Reason |
|---|---|---|
| One fact in a short document | Read the whole document | The document fits in the model's context |
| One question with evidence spread across a long chart | Agentic search | Follow-up searches catch synonyms and separate admissions |
| A complete list of qualifying items in a packet | Read every page | Hathr.AI's synthetic SNF benchmark (October 2026) found 98.8% recall for full reading against 39.4% for search, at lower precision (82.1% against 86.8%) |
I recommend agentic search for questions and whole-record reading for checklists.
Who makes the clinical decision?
The clinician makes the clinical decision. Under the Medicare hospice benefit, the hospice medical director and the attending physician, if the patient has one, certify a life expectancy of six months or less if the illness runs its normal course. Hathr.AI's role ends at surfacing cited evidence for that review.
Hathr.AI doesn't determine eligibility, assign a prognosis or sign a certification. Reviewers should check Hathr.AI's summary for three failure modes: an old ejection fraction reported as current, a hospitalization outside the window the reviewer cares about, and notes that conflict with each other. For broader chart work, Hathr.AI for medical record review applies the same evidence-and-citation model.
Hathr.AI won't determine eligibility, and I'd distrust any tool that claims to.
Frequently asked questions
What is agentic RAG in healthcare?
Agentic RAG in healthcare is retrieval-augmented generation where the model searches a patient record as a tool, reads the results, and runs follow-up searches with new terms until it has the evidence. Hathr.AI uses this pattern on long charts in AWS GovCloud, with the server fixing the customer index and a hard cap on searches per turn.
How is agentic RAG different from standard RAG?
Standard RAG embeds the question once and passes the closest chunks to the model. Agentic RAG lets the model choose the query, check the results and search again, for example rewriting CHF as congestive heart failure. The extra searches catch evidence that sits under different wording or in separate documents across a long record.
Does agentic RAG cost more to run?
Agentic RAG makes more model and search calls per question, so the compute cost per answer rises. Hathr.AI measures under 100 ms average query latency on its vector search, so several searches per turn stay fast. Hathr.AI's web app includes unlimited queries, so reviewers don't pay per search.
Can a document in the chart hijack the agent?
A document can carry injected instructions, which OWASP ranks as the top LLM risk (LLM01, 2025). In Hathr.AI, the server sets the customer index and document scope from the session, and a per-turn counter in the search tool caps searches. Injected text can change the query wording, but it can't reach another customer's index or exceed the cap.
Does Hathr.AI decide hospice eligibility?
No. Hathr.AI surfaces evidence from the chart, such as ejection fraction, NYHA class and recent hospitalizations, with citations to the source passages. The hospice medical director and attending physician certify terminal illness, and the reviewer decides what the evidence supports. Reviewers should verify each cited passage before relying on the summary.
Is agentic RAG safe for PHI?
Agentic RAG is as safe as the environment around it. Hathr.AI runs Anthropic's Claude models in AWS GovCloud, hosted on FedRAMP High infrastructure, with a signed BAA on every HIPAA-compliant plan. Hathr.AI's LLMs run with zero data retention, and files customers store sit in Hathr.AI's File Library in AWS GovCloud, hosted on FedRAMP High infrastructure, until the customer deletes them.
Bring the hardest chart in your queue: start a Hathr.AI trial and run a heart failure eligibility review with citations, or book a walkthrough of the agent with the Hathr.AI team.
Change log: November 2026: first published.
Our Youtube Videos
Hathr.AI is the fastest, safest way to handle sensitive medical records with HIPAA-compliant artificial intelligence. In this demo, watch how you can:✅ Summarize a patient’s medical record ✅ Generate an AI-assisted treatment plan ✅ Write a letter to the patient in plain English ✅ Suggest CPT billing codes ✅ Draft an insurance appeal for a denied claim ✅ Evaluate the case for potential malpractice — all in under 5 minutes.The only AI tool hosted in AWS GovCloud and Powered by Claude 4.0 Sonnet, Hathr.AI is trusted by hundreds of practices that need speed, security, and compliance.Learn more: hathr.ai For healthcare teams: hathr.ai/healthcare Reach out to learn more: contact@hathr.ai
#HIPAACompliantAI#ArtificialIntelligenceInMedicine#HealthcareAI#MedicalBillingAI#AIForDoctors#HIPAAAI#MedicalRecords#AIInHealthcare
Description
As Hathr.AI, we are dedicated to providing a private, secure, and HIPAA-compliant AI solution that prioritizes your data privacy while delivering cutting-edge technology for enterprises and healthcare professionals alike.
In this video, we’ll dive deep into the growing concerns around data privacy with AI tools—especially in light of recent revelations about Microsoft’s Word and Excel AI features. These new features have raised alarm over data scraping practices, where user data could be used without clear consent, leaving individuals and organizations exposed to potential privacy breaches. What makes this especially concerning is the "opt-in by default" design, which could lead to unintended data sharing.
In contrast, Hathr.AI ensures that your data stays yours. With a firm commitment to HIPAA compliance, we take the protection of sensitive healthcare data to the highest level. Our platform is built with the understanding that privacy is not an afterthought but a fundamental pillar of our design. We don’t collect, store, or sell user data, and we employ state-of-the-art encryption, secure access protocols, and clear user consent processes to keep you in full control.
We’ll also touch on why Hathr.AI, powered by advanced LLM (Large Language Models) like Claude AI, offers a secure and private alternative for businesses looking to leverage AI technology without compromising sensitive information. While some AI tools may collect or expose data through ambiguous or hard-to-find opt-out settings, Hathr.AI puts transparency and security at the forefront, offering peace of mind in an era of increasing digital vulnerability.
If you’re concerned about your privacy or looking for a HIPAA-compliant AI solution that respects your data, Hathr.AI provides the robust security, transparency, and ethical design that you need.
Key Points:
- HIPAA Compliant AI: Built for healthcare professionals, ensuring compliance with privacy regulations.
- Privacy-first: No data scraping, no data selling, full user control over information.
- Claude AI: Secure, powerful LLM tools for advanced capabilities without compromising security.
- Data Transparency: Say goodbye to hidden opt-in/opt-out toggles—Hathr.AI gives you clear, easy-to-understand privacy settings.
Tune in to learn how Hathr.AI ensures your AI tools remain private, secure, and trustworthy, while still delivering the performance and accuracy you need to thrive in a fast-evolving digital landscape.
Don't forget to like, comment, and subscribe for more insights on secure AI solutions and how to protect your organization from emerging privacy risks!
Description
Discover how Hathr AI's advanced AI tools transform federal acquisition processes with unparalleled security and efficiency. Designed for government professionals, this video showcases Hathr AI’s capabilities, including secure AI data analysis, HIPAA-compliant tools, and AWS GovCloud integration, to help streamline decision-making and document management. Perfect for agencies seeking private, compliant, and powerful AI solutions, Hathr.AI delivers tools tailored for healthcare and government needs.
Key Topics Covered:
AI-driven data analysis for governmentHIPAA-compliant, secure AI tools for federal agencies
Private deployment options with AWS GovCloud
Learn more about Hathr AI’s secure, high-performance solutions at hathr.ai and transform your agency’s acquisition process with cutting-edge AI.
Description
Discover how Hathr.AI simplifies NSF grant evaluations with advanced AI-driven compliance and proposal review tools. This video showcases Hathr.AI’s capability to streamline grant compliance checks, enhance accuracy, and save time for evaluators and applicants alike. Ideal for research institutions, government agencies, and proposal writers, Hathr.AI offers secure, HIPAA-compliant AI solutions tailored to meet the complex requirements of NSF and other grant processes.Highlights:AI-powered compliance checks for NSF grant proposalsFast, accurate, and secure evaluations with Hathr.AITailored solutions for research, government, and healthcareOptimize your grant proposal process with Hathr.AI's private, secure AI tools. Learn more at hathr.ai and transform how you handle grant evaluations and compliance.
Description
Join Hathr.AI at the Defense Information Systems Agency (DISA) Technical Exchange Meeting to explore innovative AI solutions tailored for federal and defense applications. In this session, we highlight Hathr.AI's secure, private AI tools designed for efficient data handling, HIPAA compliance, and seamless integration within government systems, including AWS GovCloud. Perfect for agencies seeking reliable AI for data analysis, document summarization, and secure decision-making, Hathr.AI provides cutting-edge technology for defense and healthcare needs.Highlights:AI tools for federal and defense data managementSecure, HIPAA-compliant AI solutions with AWS GovCloudEnhancing operational efficiency with private AI deploymentsDiscover how Hathr.AI's solutions empower government and defense agencies to stay at the forefront of innovation. Visit https://hathr.ai to learn more about our services.





