Skip to content

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

Notifications You must be signed in to change notification settings

luisquintanilla/AspireAIPresidio

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages