Authenticated tenant context
The API derives tenant identity from verified claims; clients never supply an unrestricted tenant selector.
AI integration · multi-tenant SaaS
A retrieval-augmented HR assistant that turns scattered policies into grounded answers while keeping every company’s documents, retrieval results, and access boundaries separate.
The product problem
Employees ask specific questions, but the answer is often split across a handbook, a regional addendum, and a newer policy revision. Keyword search returns files, not a decision-ready answer.
The assistant retrieves only the requesting tenant’s material, assembles a grounded response, and exposes the supporting passages. When evidence is weak, the product says so instead of improvising.
Read-only product demo
A safe, front-end demonstration using fictional policies and pre-generated responses. No employer systems or data are connected.
How many days can I work remotely?
Eligible employees may work remotely up to three days per week. The schedule needs manager approval and should preserve the team’s two shared office days.
Retrieval pipeline
Document identity and section metadata survive every stage, making each response traceable back to its source.
Parse policy files, retain document metadata, and split text into retrieval-sized chunks.
Generate embeddings and store vectors beside tenant, document, section, and version identifiers.
Filter by tenant before similarity search, then rerank the strongest policy passages.
Generate from retrieved context only and return citations that resolve to exact source sections.
Tenant isolation
The API derives tenant identity from verified claims; clients never supply an unrestricted tenant selector.
Every document and chunk carries a tenant key, with PostgreSQL row-level security backing application filters.
Vector search is tenant-scoped before any context reaches the model, preventing cross-tenant passages from entering a prompt.
Answers retain document version and section identifiers so access checks can be reapplied when a source is opened.
Privacy note
This case study describes a generalized architecture. Names, policies, citations, metrics, and interface content are fictional; no employer code, data, or branding is used.