AICentral.Logging.PIIStripping 0.20.6

dotnet add package AICentral.Logging.PIIStripping --version 0.20.6                
NuGet\Install-Package AICentral.Logging.PIIStripping -Version 0.20.6                
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" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AICentral.Logging.PIIStripping --version 0.20.6                
#r "nuget: AICentral.Logging.PIIStripping, 0.20.6"                
#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.
// Install AICentral.Logging.PIIStripping as a Cake Addin
#addin nuget:?package=AICentral.Logging.PIIStripping&version=0.20.6

// Install AICentral.Logging.PIIStripping as a Cake Tool
#tool nuget:?package=AICentral.Logging.PIIStripping&version=0.20.6                

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. 
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.20.6 71 11/1/2024
0.20.6-pullrequest0150-0003 64 11/1/2024
0.20.5 86 9/30/2024
0.20.5-pullrequest0148-0004 78 9/30/2024
0.20.5-pullrequest0148-0002 66 9/30/2024
0.20.4 97 9/13/2024
0.20.4-pullrequest0147-0002 87 9/13/2024
0.20.3 101 9/5/2024
0.20.3-pullrequest0146-0005 80 9/5/2024
0.20.3-pullrequest0146-0004 82 9/5/2024
0.20.1 122 8/22/2024
0.20.1-pullrequest0144-0002 79 8/19/2024
0.20.0 103 8/17/2024
0.20.0-pullrequest0143-0013 77 8/17/2024
0.20.0-pullrequest0143-0012 90 8/17/2024
0.20.0-pullrequest0143-0011 74 8/17/2024
0.20.0-pullrequest0143-0010 94 8/17/2024
0.20.0-pullrequest0143-0009 87 8/17/2024
0.19.6-pullrequest0143-0008 88 8/17/2024
0.19.2 78 7/29/2024
0.19.2-pullrequest0138-0004 73 7/29/2024
0.19.0 83 7/29/2024
0.19.0-pullrequest0136-0014 71 7/29/2024
0.19.0-pullrequest0136-0013 80 7/29/2024
0.19.0-pullrequest0136-0012 71 7/29/2024
0.19.0-pullrequest0136-0011 77 7/29/2024
0.19.0-pullrequest0136-0010 76 7/29/2024
0.19.0-pullrequest0136-0009 74 7/27/2024
0.19.0-pullrequest0136-0008 74 7/27/2024
0.19.0-pullrequest0136-0007 81 7/27/2024
0.18.7-pullrequest0136-0006 66 7/27/2024
0.18.4 86 7/15/2024
0.18.4-pullrequest0133-0009 69 7/15/2024
0.18.4-pullrequest0133-0008 64 7/15/2024
0.18.4-pullrequest0133-0007 64 7/15/2024
0.18.4-pullrequest0133-0006 62 7/15/2024
0.18.4-pullrequest0133-0005 70 7/15/2024
0.18.4-pullrequest0133-0004 67 7/15/2024
0.18.4-pullrequest0133-0003 66 7/15/2024
0.18.4-pullrequest0133-0002 73 7/15/2024
0.18.3 77 7/12/2024
0.18.3-pullrequest0132-0005 71 7/12/2024
0.18.2-pullrequest0130-0003 68 7/11/2024
0.18.2-pullrequest0130-0002 71 7/11/2024
0.18.1 76 7/10/2024
0.18.1-pullrequest0129-0007 61 7/10/2024
0.18.0 106 7/10/2024
0.18.0-pullrequest0125-0014 64 7/10/2024
0.18.0-pullrequest0125-0013 66 7/10/2024
0.18.0-pullrequest0125-0012 55 7/10/2024
0.18.0-pullrequest0125-0011 67 7/10/2024
0.18.0-pullrequest0125-0010 67 7/10/2024
0.18.0-pullrequest0125-0009 54 7/10/2024
0.17.2-pullrequest0125-0008 70 7/10/2024
0.17.2-pullrequest0125-0007 66 7/10/2024
0.17.2-pullrequest0125-0006 70 7/10/2024
0.17.2-pullrequest0125-0005 70 7/10/2024
0.17.2-pullrequest0125-0004 70 7/10/2024
0.17.2-pullrequest0125-0003 74 7/9/2024
0.17.2-pullrequest0125-0002 182 7/9/2024
0.17.0 82 7/8/2024
0.17.0-pullrequest0123-0024 69 7/8/2024
0.17.0-pullrequest0123-0023 58 7/8/2024
0.17.0-pullrequest0123-0021 50 7/8/2024
0.17.0-pullrequest0123-0020 45 7/8/2024
0.17.0-pullrequest0123-0019 48 7/8/2024
0.17.0-pullrequest0123-0018 40 7/8/2024
0.17.0-pullrequest0123-0017 47 7/8/2024
0.17.0-pullrequest0123-0016 48 7/8/2024
0.17.0-pullrequest0123-0015 52 7/8/2024
0.17.0-pullrequest0123-0014 39 7/8/2024
0.17.0-pullrequest0123-0013 39 7/8/2024
0.17.0-pullrequest0123-0012 46 7/8/2024
0.17.0-pullrequest0123-0011 51 7/8/2024
0.17.0-pullrequest0123-0009 160 7/6/2024
0.17.0-pullrequest0123-0008 49 7/6/2024
0.16.23 55 6/12/2024
0.16.23-pullrequest0118-0005 46 6/12/2024
0.16.23-pullrequest0118-0004 45 6/12/2024
0.16.23-pullrequest0118-0003 47 6/12/2024