Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luisquintanilla/aspireaipresidio
This sample shows how to configure Presidio with .NET Aspire for PII redaction purposes inside an .NET Web API application.
https://github.com/luisquintanilla/aspireaipresidio
Last synced: about 2 months ago
JSON representation
This sample shows how to configure Presidio with .NET Aspire for PII redaction purposes inside an .NET Web API application.
- Host: GitHub
- URL: https://github.com/luisquintanilla/aspireaipresidio
- Owner: luisquintanilla
- Created: 2024-06-21T02:43:04.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-21T02:50:26.000Z (7 months ago)
- Last Synced: 2024-06-21T21:32:38.846Z (7 months ago)
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aspire Presidio Sample
This sample shows how to configure [Presidio](https://microsoft.github.io/presidio/) with .NET Aspire for PII redaction purposes inside an .NET Web API application.
![AspireAIPresidio trace for redaction request displayed in Aspire Dashboard](https://github.com/luisquintanilla/AspireAIPresidio/assets/46974588/0d82e4a8-d217-4f52-b7d6-fa45fd1ef57a)
## 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
- [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) or later
- [Docker](https://docs.docker.com/desktop/)
- [Visual Studio](https://visualstudio.microsoft.com/downloads/) or [Visual Studio Code](https://code.visualstudio.com/download)## 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](https://github.com/luisquintanilla/AspireAIPresidio/assets/46974588/a7f570b0-02fb-4b7b-9bdb-ddbc72240ef3)