Skip to content

feat(ai): integrate AWS Comprehend utility for PII redaction (#290) - #838

Open
granbellllc-png wants to merge 1 commit into
arakoodev:tsfrom
granbellllc-png:feat/aws-comprehend-redactor
Open

granbellllc-png wants to merge 1 commit into
arakoodev:tsfrom
granbellllc-png:feat/aws-comprehend-redactor

Conversation

@granbellllc-png

@granbellllc-png granbellllc-png commented Nov 10, 2026 •

Copy link
Copy Markdown

Summary

Resolves #290

/claim #290

Integrates AWS Comprehend PII redaction utility into EdgeChains JavaScript / TypeScript SDK:

  • ComprehendRedaction: Core redaction utility using AWS Comprehend DetectPiiEntitiesCommand (with mockable client and local pattern fallback) to mask or redact sensitive PII entities (email, phone, SSN, names, etc.) while preserving offset alignment.
  • AwsComprehendRedactor: Observable/chainable utility providing a .chain(prompt) / .observe(prompt) interface to sanitize prompts before LLM endpoint execution.
  • Tests: Comprehensive unit tests in JS/edgechains/arakoodev/src/ai/src/tests/comprehendRedactor.test.ts verifying entity redaction, custom masking, clean passthrough, and empty input handling.
  • Example: Full working runnable demonstration in JS/edgechains/examples/comprehend-redactor/index.ts.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@granbellllc-png

Copy link
Copy Markdown
Author

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

2 similar comments
@granbellllc-png

Copy link
Copy Markdown
Author

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

@almagas

almagas commented Nov 10, 2026

Copy link
Copy Markdown

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

@granbellllc-png

Copy link
Copy Markdown
Author

recheck

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