RH
HomePortfolioBlog
RH

Made with ❤️ by Rupanjan Hari

Copyright © 2026 Rupanjan Hari. All rights reserved.
Back to All Projects

PII-Safe RAG

Featured showcase

PII-Safe RAG
Click to expand image

Project Overview

A retrieval-augmented pipeline designed so that the LLM never sees raw personally identifiable information. Sensitive values are detected and replaced before anything reaches the model, held only in a short-lived encrypted cache, and restored in a final de-redaction step for users allowed to see them.

How it works

A FastAPI service exposes redaction and unmasking over HTTP and the same capabilities as MCP tools (query, read document, list entities), so both apps and agents can use it. Documents are synced from connected sources on a schedule and indexed in a vector store, with PostgreSQL and Redis behind it.

My work focused on the architecture and on agent answer quality: ranking and counting, entity name resolution, a data-mode query path and an outbound safety pass before anything leaves the system.

Technologies Used

7
Python
Python
FastAPI
FastAPI
MCP
MCP
Milvus
Milvus
PostgreSQL
PostgreSQL
Redis
Redis
Docker
Docker