RAG-based Email
Response Automation
From past replies to reusable knowledge.
I independently architected and implemented an 11-category RAG assistant. It retrieves relevant knowledge and generates source-cited email drafts for human review.
AGENT-REPLY KNOWLEDGE PIPELINE
Correct drafting
45% 88%Top-5 retrieval
70% 91%What I built
- Retrieval with the right context. Routed requests across 11 categories, combined Cohere embeddings with PostgreSQL/pgvector search, and used Haiku reranking to prioritize evidence before drafting.
- A reusable knowledge pipeline. Turned historical agent replies into source-grounded knowledge. The integrated pipeline raised reported correct drafting from 45% to 88% and top-5 retrieval from 70% to 91%.
- Preparation before indexing. Added GLiNER/Presidio PII masking, MPNet semantic clustering and DeBERTa NLI grounding checks to limit personal-data exposure and keep answers traceable to their sources.
- Repeatable prompt optimization. Replaced ad hoc tuning with DSPy/GEPA against defined classification and safety metrics, making prompt selection repeatable and quality changes measurable.