Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions JS/edgechains/arakoodev/src/ai/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export { OpenAI } from "./lib/openai/openai.js";
export { GeminiAI } from "./lib/gemini/gemini.js";
export { LlamaAI } from "./lib/llama/llama.js";
export { RetellAI } from "./lib/retell-ai/retell.js";
export { RetellWebClient } from "./lib/retell-ai/retellWebClient.js";
export * from "./lib/comprehend/index.js";
12 changes: 12 additions & 0 deletions JS/edgechains/arakoodev/src/ai/src/lib/comprehend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AWS Comprehend PII Redactor for EdgeChains

Utility for detecting and redacting Personally Identifiable Information (PII) using AWS Comprehend with observable pipeline chaining.

## Features

- **Injectable Client**: Inversion-of-control client injection for testing and zero-cloud environments.
- **SigV4 REST Signing**: Built-in AWS Signature Version 4 signer using native Node.js crypto.
- **Span-based Redaction**: Deterministic redaction using character offsets, eliminating drift issues.
- **Multiple Redaction Modes**: `REPLACE_LABEL`, `MASK`, `REMOVE`, and custom replacer functions.
- **Observable Chaining**: `PromptRedactionObservable` for pipeline transformation and integration with EdgeChains chat endpoints.
- **Local Fallback**: Regex-based local PII fallback rules for development and testing.
Loading
Loading