Per-Customer Vector Indexes: How Hathr.AI Isolates PHI in GovCloud

Last updated: November 30, 2026. By Sam Hart, founder of Hathr.AI.

Key takeaways

  • Hathr.AI stores each customer's embeddings in a separate Amazon S3 Vectors index in AWS GovCloud and picks the index from the signed-in session (how Hathr.AI built per-customer vector indexes).
  • Treat embeddings of patient records as PHI. Morris et al. (EMNLP 2023) recovered exact matches for 92% of 32-token inputs from their embeddings, and 89% of full names from a set of clinical notes.
  • No vector database arrives HIPAA compliant. A BAA, scoped IAM, encryption, audit logs and provable deletion get you there.
  • A shared index puts tenant isolation in one filter clause. One index per customer puts it in the resource boundary and IAM.
  • S3 Vectors fixes an index's dimension, metric, non-filterable keys and encryption at creation, so a new embedding model means a full re-embed.

To see per-customer isolation from the user's side, open a Hathr.AI workspace and query a test chart with page citations. The tables below apply whether or not you use Hathr.AI.

Are embeddings PHI?

Yes: treat an embedding of a patient record as protected health information, because published attacks can turn embeddings back into much of the original text. Morris et al., "Text Embeddings Reveal (Almost) As Much As Text" (EMNLP 2023), built an iterative inversion method that recovered exact matches for 92% of 32-token text inputs from their embeddings alone. The same researchers ran the method against a dataset of clinical notes and recovered 89% of the full names in those notes (Morris et al., EMNLP 2023).

HIPAA defines PHI by content and identifiability, and the storage format plays no part in the test. A float array that an attacker can invert into "Jane Doe, heart failure, three admissions since March" carries the same identifiers as the PDF behind it. Your index also holds chunk IDs and document IDs beside each vector.

Hathr.AI stores those pieces apart. Hathr.AI writes each text chunk to Amazon DocumentDB and the matching embedding to the customer's own S3 Vectors index, keyed by chunk ID, with document_id stored as filterable metadata (AWS Storage Blog, November 2026). Hathr.AI keeps both stores in AWS GovCloud, hosted on FedRAMP High infrastructure, and a document delete removes the document's data from both. I recommend you scope your BAA, keys and deletion workflow to the vector store on day one, the same way you scope them to the source PDF.

What does a HIPAA compliant vector database need?

A HIPAA compliant vector database needs a signed BAA with whoever hosts it, a service that BAA covers, and controls you configure and run yourself: tenant-scoped access, encryption, audit logs and a deletion path. For Amazon Bedrock, AWS lists the service as HIPAA-eligible under the AWS BAA (AWS HIPAA Eligible Services Reference), which means AWS covers its side and the customer configures and operates the rest. Check that reference for your vector store before PHI lands in it.

The Security Rule never mentions vectors, but its safeguards map onto a vector store:

SafeguardCitationWhat it means for a vector store
Access control45 CFR 164.312(a)(1)Only the session's tenant can query its vectors
Encryption at rest45 CFR 164.312(a)(2)(iv)Encrypt each index; consider a customer managed KMS key per tenant
Audit controls45 CFR 164.312(b)Record who wrote, queried and deleted vectors, per index
Activity review45 CFR 164.308(a)(1)(ii)(D)Someone reads those logs on a schedule
Disposal45 CFR 164.310(d)(2)(i)Deleting a document removes its vectors and chunks, and you can show when
Media re-use45 CFR 164.310(d)(2)(ii)PHI leaves storage before reuse; NIST SP 800-88 Rev. 1 defines clear, purge and destroy

CloudTrail records S3 Vectors management events by default, but PutVectors, QueryVectors and DeleteVectors are data events, and you have to turn them on to get a record of who read or deleted which vectors (AWS Storage Blog, November 2026). Under the shared responsibility model, the customer owns IAM scope, keys, deletion workflows and logging; the deletion side gets its own treatment in what deleting patient data from an AI tool has to cover. I disagree with any vendor who calls a vector database HIPAA compliant because a BAA exists: the BAA assigns liability, and your configuration does the protecting.

Shared index with metadata filters vs. one index per customer

A shared index keeps all tenants' vectors behind a tenant filter in each query; one index per customer makes isolation a matter of which index the server calls and what IAM allows.

QuestionShared index with tenant_id filterOne index per customer
Where isolation livesA filter clause in application codeThe index ARN the server chooses, plus IAM
A developer forgets the filterThe query returns other tenants' chunksNo filter to forget; a bug has to build the wrong index name
One tenant uploads 50,000 pagesEvery tenant shares one write budgetThat tenant spends its own budget: up to 1,000 PutVectors plus DeleteVectors requests and 2,500 vectors per second per index
Offboarding a customerDelete by filter, then prove nothing remainsOne DeleteIndex call, which can't be undone
Per-tenant encryption keyNot available inside one indexA customer managed KMS key per index
Scale ceiling2 billion vectors in one index10,000 indexes per bucket, 10,000 buckets per account per Region
Operating costOne resource to monitorOne index per tenant to create, map and monitor
Best fitA single-tenant deploymentMulti-tenant software that stores PHI

Hathr.AI started with embeddings on a shared Amazon DocumentDB cluster. Before the move, Hathr.AI quadrupled DocumentDB instance sizes to keep up with growth, and the high-churn vector workload competed with the transactional working set for instance memory (AWS Storage Blog, November 2026). A large ingestion burst from one Hathr.AI customer could slow chat for the rest. After the summer 2026 cutover to per-customer S3 Vectors indexes, Hathr.AI measured these results in production (AWS Storage Blog, November 2026):

  • Hathr.AI recorded zero failed vector-search requests from the cutover through 12 November 2026.
  • Hathr.AI measured under 100 ms average vector query latency.
  • Hathr.AI cut P99 time from document upload to ready-to-query to less than one-tenth of the previous figure.
  • Hathr.AI cut its own database cost 4x after downsizing the DocumentDB cluster to one quarter of its old size, once embeddings left instance memory.
  • Delete volume on Hathr.AI's indexes has no visible effect on query latency.

Past 10,000 indexes, map tenant IDs to buckets with a deterministic function, such as a hash modulo a fixed bucket count, so the server computes any tenant's index without a lookup table. Fix the bucket count up front, because changing the modulus moves tenants. I recommend one index per customer for any multi-tenant system that stores PHI, and a shared index only when every vector belongs to one covered entity.

How do you scope IAM to a single tenant's index?

Scope IAM by job and by resource: the ingestion role writes to tenant indexes, the query runtime role only queries, and your server builds the index ARN from the authenticated session so the model never supplies one. Hathr.AI runs this split in production with separate ingestion and agent runtime roles (AWS Storage Blog, November 2026).

RoleAllowed S3 Vectors actionsMust not hold
Ingestion (Step Functions and Lambda)PutVectors; DeleteVectors if the same pipeline handles deletesQueryVectors, DeleteIndex
Agent runtime (the chat service)QueryVectors, plus GetVectors if your queries filter or return metadata (check the current S3 Vectors IAM reference)PutVectors, DeleteVectors, DeleteIndex
Account lifecycle automationCreateIndex, DeleteIndexQueryVectors

Worked example: one hospice reviewer's query

  1. A reviewer at tenant t-4821 signs in, and your auth layer issues a session that carries tenant ID t-4821.
  2. The reviewer selects two files from a 400-page chart and asks about heart failure eligibility.
  3. The model calls the search tool with two arguments: query text ("ejection fraction") and a result count of 8. The schema exposes nothing else.
  4. The server hashes t-4821 to bucket phi-vectors-07 and builds arn:aws-us-gov:s3vectors:us-gov-west-1:111122223333:bucket/phi-vectors-07/index/t-4821-v1. An IaC template that hard-codes arn:aws fails in GovCloud's separate partition.
  5. The server adds a document_id filter for the two selected files and calls QueryVectors as the read-only runtime role.
  6. The server loads chunk text from DocumentDB by chunk ID and returns it with citations. The model can rephrase "CHF" as "congestive heart failure" and search again, up to the per-turn search cap.

Suppose a scanned page in that chart hides an instruction to search tenant t-1009. The model has no parameter to put t-1009 into. In AWS's words, "A prompt injection hidden in an uploaded document can't steer retrieval into another customer index" (AWS Storage Blog, November 2026); see the walk-through of RAG prompt injection across tenants. Write the IAM policy before the first PutVectors call, then plant a hostile instruction in a test document and confirm in CloudTrail that the runtime only queried the signed-in tenant's index.

Three IAM roles, a bucket-mapping function and a search cap come before the first chart loads. Before you build them, run a sample chart through Hathr.AI's isolated retrieval, or read what Hathr.AI's API for healthcare builders includes.

What can't you change after creating an index?

Amazon S3 Vectors fixes four settings when you create an index: vector dimension, distance metric, the list of non-filterable metadata keys and the encryption configuration. A new embedding model with a different output size therefore means new indexes and a re-embed of every chunk (AWS Storage Blog, November 2026).

SettingDecide before creationCost of getting it wrong
DimensionMatch your embedding model's output sizeNew index and a re-embed of every chunk
Distance metricUse the metric your embedding model was trained for (cosine or Euclidean)New index; recall drops without any error message
Non-filterable metadata keysKeep document_id filterable; mark large return-only fields non-filterableNew index to change which keys you can filter on
EncryptionS3-managed keys or a customer managed KMS key per indexNew index and a full copy to change keys

Split storage makes a model change cheaper for any builder. Hathr.AI keeps chunk text in DocumentDB keyed by chunk ID, and a design like that lets a builder re-embed from stored chunks without re-parsing or re-running OCR on the original files. Version your index names (t-4821-v1, then t-4821-v2), dual-write during the migration, switch reads, then call DeleteIndex on the old version. Multimodal search across images and scanned pages, next on Hathr.AI's roadmap, is the kind of feature that can bring a new embedding model. Put a version suffix on every index name from the first day.

Build it or use a platform that already isolates tenants?

Build it yourself if platform engineers will own IAM, KMS keys, deletion workflows and CloudTrail data events for years; use a platform when your team wants answers from patient records and the vector store is plumbing. Hathr.AI brought in an AWS Partner for its own migration: Corrected Cloud, founded by Sam Bashton, designed and implemented the move. Hathr.AI runs one AWS Step Functions workflow per uploaded file, with a Map state that batches chunks, because embedding a large document can take over an hour and Lambda stops at 15 minutes. GovCloud adds partition-specific ARNs and a different Bedrock model list, covered in building AI workloads in the aws-us-gov partition.

Hathr.AI is a HIPAA-compliant AI platform that runs Anthropic's Claude models in AWS GovCloud, hosted on FedRAMP High infrastructure, with a signed BAA on every HIPAA-compliant plan and no seat minimums. 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. Hathr.AI never uses customer data for model training or product development. A tenant filter is a promise your code keeps on every query; a separate index is a boundary AWS enforces. Ask any vendor to show you its index design. The full component list sits in the build-vs-buy breakdown for Bedrock agents. I recommend building only when retrieval is your product.

Hathr.AI's web app costs $47 per user per month (as of November 2026; see current Hathr.AI pricing), with no seat minimums, a BAA accepted electronically at signup and a 7-day free trial. If you hold PHI for several customers in one shared index today, start a Hathr.AI workspace or walk through your architecture with the Hathr.AI team.

Frequently asked questions

Which vector databases can store patient record embeddings?
A vector store can hold patient record embeddings once it runs on a service covered by a signed BAA and your team configures isolation, encryption, logging and deletion. On AWS, check each candidate, such as Amazon OpenSearch Service, Amazon Aurora PostgreSQL with pgvector or Amazon S3 Vectors, against the AWS HIPAA Eligible Services Reference before PHI reaches the store. Hathr.AI runs per-customer S3 Vectors indexes in AWS GovCloud, hosted on FedRAMP High infrastructure.

Is Amazon S3 Vectors HIPAA compliant?
No storage service is HIPAA compliant by itself. You need the AWS BAA, a service on the AWS HIPAA Eligible Services Reference, and your own configuration: scoped IAM, encryption, CloudTrail data events and a deletion workflow. Hathr.AI runs its per-customer S3 Vectors indexes in AWS GovCloud, hosted on FedRAMP High infrastructure, next to its Claude inference.

Do vector embeddings count as PHI under HIPAA?
Treat them as PHI. Morris et al. (EMNLP 2023) recovered exact matches for 92% of 32-token inputs from embeddings and 89% of full names in a clinical-notes dataset. Embeddings also sit beside document IDs that point back to a patient, so apply the BAA, encryption and disposal rules you apply to the source record.

Is a metadata filter enough to separate tenants?
A metadata filter works until one code path forgets it, and then the query returns other tenants' chunks with no error. For a multi-tenant product holding PHI, give each customer its own index and let the server choose it from the authenticated session. Keep filters for narrowing within a tenant.

How does Hathr.AI isolate one customer's vectors from another's?
Hathr.AI gives each customer a separate Amazon S3 Vectors index in AWS GovCloud. The Hathr.AI server sets the index and document scope from the signed-in session, and Claude chooses only the query text and result count. A hostile document has no field in which to name another customer.

What happens to the vectors when a Hathr.AI user deletes a file?
Hathr.AI calls DeleteVectors on that customer's index in batches of 500, then removes the matching chunks from DocumentDB. Closing a Hathr.AI account removes the whole index with one DeleteIndex call, which can't be undone. A heavy delete day for one Hathr.AI customer leaves query speed unchanged for the others.

Change log: November 2026: first published.

Written by
Sam Hart headshot - Founder at Hathr.ai
Sam Hart
Date Published:
2026-11-17

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.

Blog and articles

Latest insights and trends

AI Healthcare solutions with Hathr.AI
HIPAA Compliant AI

AI Healthcare Solutions: How a HIPAA Compliant LLM can Revolutionize your practice

Learn how HIPAA compliant AI healthcare solutions can revolutionize your practice. Hathr AI offers secure, HIPAA & NIST-certified tools that automate billing, enhance diagnostics, and improve patient care while ensuring complete data privacy and compliance.
deepseek-ai-is-dangerous-for-healthcare
Security & Compliance

DeepSeek AI: Interesting Methods, Dangerous Product

Analysis of DeepSeek AI's computational efficiency innovations and why its security risks, censorship issues, and compliance concerns make it unsuitable for healthcare, government, and other regulated industries in the United States.
Challenges Finding Compliant AI
Security & Compliance

Challenges Finding Compliant AI: ChatGPT is Watching You

This blog post explores the recent discovery of AI-powered surveillance by Chinese intelligence using ChatGPT, highlighting the vulnerabilities of commercial AI tools in terms of security, privacy, and compliance. It discusses the implications for regulated industries and offers guidance on implementing secure, HIPAA-compliant AI solutions like Hathr.AI to safeguard operations without compromising functionality.
HIPAA Compliant AI

Low-Code HIPAA Compliant AI: Hathr.AI Integrates with Pipedream.com to Deliver HIPAA-Compliant AI Integration

Hathr.AI partners with Pipedream.com to offer HIPAA-compliant AI integrations, transforming healthcare automation with secure, low-code solutions. This collaboration empowers healthcare providers and developers to create compliant workflows, enhancing efficiency and patient outcomes while maintaining robust data security.