AICentral.Logging.PIIStripping 0.20.6-pullrequest0150-0003

This is a prerelease version of AICentral.Logging.PIIStripping.
There is a newer version of this package available.
See the version list below for details.
dotnet add package AICentral.Logging.PIIStripping --version 0.20.6-pullrequest0150-0003
                    
NuGet\Install-Package AICentral.Logging.PIIStripping -Version 0.20.6-pullrequest0150-0003
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AICentral.Logging.PIIStripping" Version="0.20.6-pullrequest0150-0003" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AICentral.Logging.PIIStripping" Version="0.20.6-pullrequest0150-0003" />
                    
Directory.Packages.props
<PackageReference Include="AICentral.Logging.PIIStripping" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AICentral.Logging.PIIStripping --version 0.20.6-pullrequest0150-0003
                    
#r "nuget: AICentral.Logging.PIIStripping, 0.20.6-pullrequest0150-0003"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=AICentral.Logging.PIIStripping&version=0.20.6-pullrequest0150-0003&prerelease
                    
Install AICentral.Logging.PIIStripping as a Cake Addin
#tool nuget:?package=AICentral.Logging.PIIStripping&version=0.20.6-pullrequest0150-0003&prerelease
                    
Install AICentral.Logging.PIIStripping as a Cake Tool

AICentral.Logging.PIIStripping

An Asynchronous logger for use with (AICentral)[www.github.com/microsoft/aicentral]. This logger leverages the Azure Text Analytics API to strip prompts and responses of PII data.

Configuration


dotnet add package AICentral.Logging.PIIStripping


builder.Services.AddAICentral(
    builder.Configuration,
    additionalComponentAssemblies:
    [
        typeof(PIIStrippingLogger).Assembly,
    ]);


{
  "AICentral": {
    "GenericSteps": [
      {
        "Type": "PIIStrippingLogger",
        "Name": "pii-stripping-logger",
        "Properties": {
          "UseManagedIdentities": "true|false",
          "UserAssignedManagedIdentityId": "<id-or-blank>",
          "StorageQueueConnectionString": "<storage-connection-string>",
          "QueueName": "queue-to-write-to",
          "TextAnalyticsEndpoint": "<text-analytics-uri>",
          "TextAnalyticsKey": "<text-analytics-key-if-if-not-using-managed-identities>",
          "CosmosDatabase": "cosmos-database-to-log-to",
          "CosmosContainer": "container-to-log-to",
          "CosmosConnectionString": "<cosmos-connection-string-if-not-using-managed-identities>",
          "StorageUri": "<uri-to-storage-if-using-managed-identities>",
          "PIIStrippingDisabled": false
        }
      }
    ]    
  }
}

How does it work?

This logger is a wrapper around the AICentral logger that uses the Text Analytics API to strip PII data from the prompts and responses before logging them to Cosmos. Log statements are initially written to an Azure Queue, and then read from the queue by a separate background service, that uses the Text Analytics API to strip PII data. The stripped log statements are then written to Cosmos.

The Container needs to have a partition key specified by '/id'.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.21.0 111 6 months ago
0.21.0-pullrequest0152-0005 90 6 months ago
0.21.0-pullrequest0152-0004 90 6 months ago
0.20.6 114 8 months ago
0.20.6-pullrequest0150-0003 89 8 months ago
0.20.5 112 9 months ago
0.20.5-pullrequest0148-0004 99 9 months ago
0.20.5-pullrequest0148-0002 88 9 months ago
0.20.4 121 9 months ago
0.20.4-pullrequest0147-0002 108 9 months ago
0.20.3 127 10 months ago
0.20.3-pullrequest0146-0005 97 10 months ago
0.20.3-pullrequest0146-0004 101 10 months ago
0.20.1 152 8/22/2024
0.20.1-pullrequest0144-0002 96 8/19/2024
0.20.0 131 8/17/2024
0.20.0-pullrequest0143-0013 97 8/17/2024
0.20.0-pullrequest0143-0012 110 8/17/2024
0.20.0-pullrequest0143-0011 91 8/17/2024
0.20.0-pullrequest0143-0010 112 8/17/2024
0.20.0-pullrequest0143-0009 105 8/17/2024
0.19.6-pullrequest0143-0008 115 8/17/2024
0.19.2 104 7/29/2024
0.19.2-pullrequest0138-0004 93 7/29/2024
0.19.0 106 7/29/2024
0.19.0-pullrequest0136-0014 88 7/29/2024
0.19.0-pullrequest0136-0013 95 7/29/2024
0.19.0-pullrequest0136-0012 89 7/29/2024
0.19.0-pullrequest0136-0011 95 7/29/2024
0.19.0-pullrequest0136-0010 92 7/29/2024
0.19.0-pullrequest0136-0009 91 7/27/2024
0.19.0-pullrequest0136-0008 91 7/27/2024
0.19.0-pullrequest0136-0007 97 7/27/2024
0.18.7-pullrequest0136-0006 92 7/27/2024
0.18.4 110 7/15/2024
0.18.4-pullrequest0133-0009 85 7/15/2024
0.18.4-pullrequest0133-0008 80 7/15/2024
0.18.4-pullrequest0133-0007 79 7/15/2024
0.18.4-pullrequest0133-0006 79 7/15/2024
0.18.4-pullrequest0133-0005 87 7/15/2024
0.18.4-pullrequest0133-0004 81 7/15/2024
0.18.4-pullrequest0133-0003 83 7/15/2024
0.18.4-pullrequest0133-0002 89 7/15/2024
0.18.3 99 7/12/2024
0.18.3-pullrequest0132-0005 89 7/12/2024
0.18.2-pullrequest0130-0003 89 7/11/2024
0.18.2-pullrequest0130-0002 89 7/11/2024
0.18.1 103 7/10/2024
0.18.1-pullrequest0129-0007 78 7/10/2024
0.18.0 135 7/10/2024
0.18.0-pullrequest0125-0014 85 7/10/2024
0.18.0-pullrequest0125-0013 83 7/10/2024
0.18.0-pullrequest0125-0012 74 7/10/2024
0.18.0-pullrequest0125-0011 86 7/10/2024
0.18.0-pullrequest0125-0010 88 7/10/2024
0.18.0-pullrequest0125-0009 72 7/10/2024
0.17.2-pullrequest0125-0008 94 7/10/2024
0.17.2-pullrequest0125-0007 84 7/10/2024
0.17.2-pullrequest0125-0006 91 7/10/2024
0.17.2-pullrequest0125-0005 88 7/10/2024
0.17.2-pullrequest0125-0004 95 7/10/2024
0.17.2-pullrequest0125-0003 94 7/9/2024
0.17.2-pullrequest0125-0002 209 7/9/2024
0.17.0 105 7/8/2024
0.17.0-pullrequest0123-0024 85 7/8/2024
0.17.0-pullrequest0123-0023 73 7/8/2024
0.17.0-pullrequest0123-0021 68 7/8/2024
0.17.0-pullrequest0123-0020 64 7/8/2024
0.17.0-pullrequest0123-0019 66 7/8/2024
0.17.0-pullrequest0123-0018 59 7/8/2024
0.17.0-pullrequest0123-0017 67 7/8/2024
0.17.0-pullrequest0123-0016 66 7/8/2024
0.17.0-pullrequest0123-0015 68 7/8/2024
0.17.0-pullrequest0123-0014 58 7/8/2024
0.17.0-pullrequest0123-0013 54 7/8/2024
0.17.0-pullrequest0123-0012 64 7/8/2024
0.17.0-pullrequest0123-0011 68 7/8/2024
0.17.0-pullrequest0123-0009 178 7/6/2024
0.17.0-pullrequest0123-0008 65 7/6/2024
0.16.23 76 6/12/2024
0.16.23-pullrequest0118-0005 64 6/12/2024
0.16.23-pullrequest0118-0004 59 6/12/2024
0.16.23-pullrequest0118-0003 66 6/12/2024