Skip to content

ayandevofficial/Secure-Prompt-Processing-Middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure Prompt Processing Middleware

A lightweight FastAPI service that detects and anonymizes sensitive user data before sending prompts to Large Language Models (LLMs), and safely restores them in the final response.

Key Features

  • PII detection using Microsoft Presidio
  • Anonymization of pii
  • Context-preserving masking
  • REST API-based design for easy integration

Tech Stack

  • Python
  • FastAPI
  • Microsoft Presidio

API Endpoints

  • POST /anonymize
  • POST /deanonymize

Use Case

Designed as a privacy layer for AI applications in domains like banking, healthcare, and customer support.

Demo

s27839.mp4

About

FastAPI service to mask PII before sending prompts to LLMs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages