My Role
Backend AI & Next.js Full-Stack Engineer
Constraint
Problem
Standard vector-only RAG pipelines leak restricted department documents in shared indexes, miss exact keyword identifiers, and provide answers without verifiable source spans.
Approach
Solution
Built an enterprise knowledge engine in Python FastAPI and Next.js 16 that filters documents by user RBAC/department ACLs before retrieval, fuses sparse lexical (FTS5/BM25) and semantic vector rankings via Reciprocal Rank Fusion, and streams citation-linked tokens over SSE.
Tech Stack
Description
DocuPulse AI solves enterprise knowledge retrieval across PDF, DOCX, and Markdown corpora with strict access control and verifiable citations.
When retrieval confidence falls below threshold, the assistant refuses to speculate rather than fabricating answers.
- Pre-query RBAC & department ACL enforcement before any chunk enters ranking or LLM prompts.
- Hybrid sparse + dense retrieval merged with Reciprocal Rank Fusion (k=60) and redundancy filtering.
- Real-time Server-Sent Events (SSE) streaming into a 3-pane Next.js Citation Studio.
- Automated Gold Evaluation Harness measuring MRR, Precision@5, and refusal accuracy.
Responsibilities
- Implemented asynchronous ingestion for PDF, DOCX, and Markdown files with heading-aware chunking.
- Engineered Hybrid RRF (k=60) retrieval with cosine deduplication (>0.92) and confidence refusal threshold (<0.25).
- Built a 3-pane Next.js Citation Studio displaying interactive inline [n] citations and source excerpts.
- Created a Gold Eval Harness tracking Precision@5, Recall@5, MRR, and refusal accuracy across test suites.
System Design
Architecture Notes
Python 3.11 + FastAPI + SQLAlchemy 2.0 Async backend paired with SQLite FTS5 / PostgreSQL pgvector HNSW indexes and a Next.js 16 streaming frontend.
Delivery Impact
Verified Outcomes
- 7/7 pytest backend tests and Playwright E2E user flows passing.
- Zero cross-department leakage verified by pre-query ACL filtering tests.
Split-Pane Inspector
Compare or peek another case study
Open a sliding side pane to compare architecture and outcomes alongside DocuPulse AI: Enterprise Hybrid RAG Assistant.