Skip to content

feat(ai): Comprehend PII redaction utility for EdgeChains (#290)#630

Open
cornerblue wants to merge 1 commit into
arakoodev:tsfrom
cornerblue:feat/comprehend-pii-redactor-290
Open

feat(ai): Comprehend PII redaction utility for EdgeChains (#290)#630
cornerblue wants to merge 1 commit into
arakoodev:tsfrom
cornerblue:feat/comprehend-pii-redactor-290

Conversation

@cornerblue

Copy link
Copy Markdown

Summary

Implements #290$50 AWS Comprehend PII redaction for the JS SDK.

Deliverables

  • `ComprehendPiiRedactor` / `createPiiRedactor` in `arakoodev/src/ai`
    • `redact(text)` and `redactMessages(messages)` for chaining before LLM calls
    • Injectable `detectPii` for tests; default uses `@aws-sdk/client-comprehend` when installed
  • Unit tests: `piiRedactor.test.ts`
  • Example: `JS/edgechains/examples/comprehend-pii-redact/index.mjs` (runs without AWS keys using a local detector stub)

Note on demo video

Runnable example is included. Loom recording can be added on request if maintainers require it for acceptance.

Test plan

```bash
node JS/edgechains/examples/comprehend-pii-redact/index.mjs

pure redaction logic verified in CI/test suite

```

Fixes #290

Add ComprehendPiiRedactor for chainable prompt redaction with injectable
detector, tests, and a runnable example without requiring AWS credentials.
@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


Mark 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

1 participant