Skip to main content
Pawan Niroula
All projects
RAG & Enterprise AI2025 – Present

Privacy-Preserving Enterprise Knowledge Assistant

An on-premise retrieval-augmented knowledge architecture enabling internal teams to query approved policies, procedures, and reference manuals with verifiable source citations.

The problem worth solving

Operational teams frequently lose time searching across fragmented PDFs, circulars, and updated manuals. Standard cloud AI assistants cannot be used directly on internal institutional documents due to confidentiality, compliance, and data-residency requirements.

How I approached it

Designed a modular, locally hosted RAG pipeline combining structure-aware document chunking, metadata filtering for document status and versioning, hybrid lexical-plus-vector retrieval in Qdrant, and local LLM synthesis constrained to cite exact source sections and page numbers.

System architecture & trust boundaries

Architecture Blueprint

Select any stage to inspect its trust boundary and engineering trade-off.

Controlled perimeter

01 · Ingest · Input validation & normalization

Policy PDFs & Circulars

Page-aware extraction, table normalization, version metadata

Architect’s note

Most downstream quality bugs originate here—preserving page boundaries, file validation, and version metadata upfront avoids painful prompt hacks later.

All document parsing, embedding generation, vector indexing, and language model inference remain strictly within the private network boundary, with explicit refusal behavior when supporting evidence is absent.

What surprised me & what stuck

Honest engineering lessons from testing this pattern against real documents and edge cases.

Metadata hygiene and superseding outdated documents matter more to answer accuracy than swapping model sizes.

Hybrid search (semantic + keyword) is essential for clause identifiers, reference codes, and domain acronyms.

Displaying exact source passages alongside answers immediately improves user trust and speeds up verification.

Hands-on open counterpart

Test the live workflow pattern directly in the AI Lab

Internal screenshots are intentionally omitted for confidentiality, so I built an open interactive counterpart you can try with sample documents right in your browser.

Try Chat with PDF in the Lab