Build agentic AI solutions that deliver measurable impact for people, planet, and trust in at least one area.
- Impact: Increase access, reduce friction, and improve outcomes for end beneficiaries.
- Sustainability: Measure, reduce, or optimize environmental and operational footprint.
- Trust & Responsible AI: Build with safety-by-design so the solution can be used responsibly in real settings.
This project implements a multi-agent pipeline that preprocesses, simplifies, and reviews user prompts before sending them to an LLM—removing redundant detail and sensitive information where possible (data minimization for Trust & Responsible AI).
The app mimics a ChatGPT-style experience with configurable privacy levels (low / medium / high). A simplification agent chain produces a minimized prompt and a final answer for the user.
Benefit: Less sensitive data in transit, while stripping noise from messy prompts so the model can answer more accurately.
- Design: Figma
- Frontend: Vite + React + Tailwind + Shadcn UI
- Backend: Node.js + TypeScript + Express + Docker
- AI/LLM: LangGraph + Groq + OpenRouter
- Deploy: Vercel + Render
- Khoi Do: Lead Developer, Backend Developer, AI Developer
- Dung Nguyen: Algorithms Developer, AI Developer, Backend Developer
- Nhi Nguyen: Designer, Frontend Developer
- Khoa Nguyen: Designer, Frontend Developer
- Client — The user sends a prompt and chooses a privacy level (low / medium / high), which sets how aggressively the pipeline compresses and redacts input.
- Server — The frontend calls the API (e.g.
POST /api/pipeline/run) with the raw message andsimplifylevel; the server starts the graph withoriginalMessageandcompressionLevel. - Preprocess agent — Fixes typos and grammar so later steps work on clean text (
preprocessedMessage). - Simplify agent — Masks PII, applied SVT -> Top-k -> NoisyKNN algorithms chain at different passing score. (
simplifiedMessage). - Review agent — Checks that the simplified prompt still matches the user’s intent (quick rules + optional LLM review). If it fails and retries remain, the pipeline loops back to Simplify agent rewrites the core question (up to three attempts).
- Output finalizing agent — When review passes (or max retries are reached), builds the client payload: approved simplified question, final answer (LLM), and review metadata (
status, similarity, missing items, retry history). - Client — The server returns simplified prompt and final answer so the user sees what was sent to the model and the reply—without exposing the full raw pipeline on every screen.
flowchart LR
U[User prompt + privacy level] --> C[Client]
C --> S[Server]
S --> P[Preprocess]
P --> SIM[Simplify]
SIM --> REV[Review]
REV -->|passed| OUT[Output finalize]
REV -->|retry| SIM
OUT --> S
S --> C
C --> R[Simplified prompt and final answer]
| Stage | What happens to user input |
|---|---|
| Preprocess | Grammar and typos corrected |
| Simplify | PII redacted, filler removed, intent-focused question |
| Review | Validates meaning; may re-run simplify |
| Output | Answer generated from the approved simplified question |
