Skip to content

Add AWS Comprehend PII redaction utility#561

Open
nguyenduchuyhd wants to merge 6 commits into
arakoodev:tsfrom
nguyenduchuyhd:ts
Open

Add AWS Comprehend PII redaction utility#561
nguyenduchuyhd wants to merge 6 commits into
arakoodev:tsfrom
nguyenduchuyhd:ts

Conversation

@nguyenduchuyhd
Copy link
Copy Markdown

/claim #290

Summary:

  • Add AwsComprehendRedactor to the JS AI package using AWS Comprehend DetectPiiEntities.
  • Redact plain text, prompt inputs, and chat message arrays before passing them to existing endpoint classes.
  • Export the utility from @arakoodev/edgechains.js/ai, add a usage example, and cover masking/filtering behavior with tests.

Verification:

  • npx vitest run src/ai/src/tests/awsComprehendRedactor.test.ts
  • npx tsc -b

@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


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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant