Skip to content

Add Amazon Comprehend PII redaction utility#533

Open
oomp wants to merge 1 commit into
arakoodev:tsfrom
oomp:codex-pii-redactor-comprehend
Open

Add Amazon Comprehend PII redaction utility#533
oomp wants to merge 1 commit into
arakoodev:tsfrom
oomp:codex-pii-redactor-comprehend

Conversation

@oomp

@oomp oomp commented May 20, 2026

Copy link
Copy Markdown

Summary

  • Add a PIIRedactor utility backed by Amazon Comprehend DetectPiiEntities.
  • Export PIIRedactor from the AI package.
  • Add optional PII redaction for OpenAI and Gemini prompts/messages before provider calls.

Test Plan

  • npx tsc -p tsconfig.json --noEmit
  • npx vitest run src/ai/src/tests/piiRedactor.test.ts --pool=threads --poolOptions.threads.singleThread=true

Closes #290

@github-actions

Copy link
Copy Markdown

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Before we can accept your contribution, we ask that you sign the Arakoo Contributor License Agreement. You can sign the CLA by adding a new comment to this pull request and pasting exactly the following text.


I have read the Arakoo CLA Document and I hereby sign the CLA


Alex seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOUNTY: integrate AWS Comprehend as a utility to redact data

2 participants