Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.25 KB

README.md

File metadata and controls

32 lines (18 loc) · 1.25 KB

Aspire Presidio Sample

This sample shows how to configure Presidio with .NET Aspire for PII redaction purposes inside an .NET Web API application.

AspireAIPresidio trace for redaction request displayed in Aspire Dashboard

Project structure

  • AppHost - .NET Aspire Application Host
  • ServiceDefaults - .NET Aspire Service Defaults
  • AspireAIPresidio - .NET Web API with Presidio Middleware
  • Presidio.Hosting - .NET Aspire Presidio Custom Component

Use cases

  • Redact user prompts for GenAI applications

Prerequisites

Run the application

  1. In Visual Studio, Press F5 or in the terminal, navigate to the AppHost project and enter dotnet run

Sample Request in Swagger UI

Image of chat request in Swagger UI