Skip to main content
Pawan Niroula

Practical systems, documented honestly

Selected areas of applied AI, document processing, and internal knowledge architecture I build and study. Select any stage in the diagrams below to inspect trust boundaries and engineering trade-offs.

DOSSIER 01·RAG & Enterprise AI· 2025 – 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.

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.

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.

PythonFastAPIQdrantOllama / Local LLMsHybrid RetrievalPostgreSQL

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.

  • —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.

Scope note: Architecture and concepts are intentionally presented at a high level. No internal banking systems, proprietary documents, or institutional metrics are disclosed.

DOSSIER 02·Document AI & OCR· 2024 – Present

Document Intelligence & Structured Extraction Pipeline

A multi-stage document processing workflow for converting scanned forms, notices, and business documents into validated structured records ready for downstream workflows.

Manual re-keying of information from scanned PDFs and image attachments slows down routine verification workflows and introduces avoidable transcription errors—especially when document layouts vary across senders.

Built a staged pipeline separating image preprocessing, OCR text capture, schema-based field extraction, deterministic cross-field validation rules, and a human-in-the-loop review interface that exports clean JSON or CSV.

PythonTesseract OCRPillowpypdfPydanticFastAPINext.js

Architecture Blueprint

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

Controlled perimeter

01 · Capture · Input validation & normalization

Upload & Validation

File signature verification, size ceiling, grayscale/contrast prep

Architect’s note

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

Deterministic checks validate dates, required identifiers, and numeric reconciliations before records leave the review workbench, isolating uncertain fields for human sign-off.

  • —Preprocessing image quality and contrast recovers more accuracy than aggressive post-processing heuristics.
  • —Human-in-the-loop verification tables with flagged low-confidence fields make adoption realistic in risk-sensitive workflows.
  • —Keeping deterministic validation separate from probabilistic extraction prevents silent downstream corruption.

Scope note: Generalized architectural patterns drawn from applied work in document automation; excludes all proprietary form templates and institutional data.

DOSSIER 03·Local LLMs & Engineering· 2025

Local LLM & Prompt Infrastructure Workbench

An internal-style provider abstraction and testing harness for comparing local open-weight models against practical everyday tasks like summarization, structured extraction, and grounded Q&A.

Evaluating whether a locally hosted model is dependable enough for a specific workflow requires consistent prompts, structured outputs, latency awareness, and side-by-side failure inspection rather than ad-hoc chat tests.

Implemented a unified provider adapter supporting Ollama and OpenAI-compatible inference servers behind a single FastAPI service boundary, paired with clean task templates and honest capability detection.

FastAPIOllamaHTTPXTypeScriptNext.jsDocker

Architecture Blueprint

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

Controlled perimeter

01 · Interface · Input validation & normalization

Unified Provider Protocol

Single async interface abstracting Ollama and OpenAI-compatible APIs

Architect’s note

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

Provider selection is driven strictly by server-side environment configuration so frontend clients never touch credentials and gracefully reflect live runtime capabilities.

  • —Task-specific interfaces with clear inputs and structured outputs consistently outperform open-ended chat prompts for non-technical users.
  • —Honest status reporting when a model runtime is offline prevents confusing silent failures.
  • —Decoupling inference adapters early makes migrating between local and hosted servers trivial.

Scope note: Open personal engineering exploration built for reusable experimentation and educational sharing.

DOSSIER 04·Education & Applied Tools· 2026

Applied AI Lab & Knowledge Sharing Platform

This platform itself: a combined personal publication, technical resource index, and modular suite of ten practical AI micro-applications designed for learning and everyday productivity.

Many aspiring practitioners and professionals encounter AI either as abstract academic theory or as hype-filled marketing demos. There is value in showing clean, inspectable tools paired with honest architectural writing.

Built a full-stack editorial web platform (Next.js, TypeScript, FastAPI, PostgreSQL, Qdrant) combining long-form engineering essays, downloadable project checklists, and real functional workbenches for OCR, tabular analysis, PDF Q&A, and workflow design.

Next.jsTypeScriptTailwind CSSFastAPIPostgreSQLQdrantDockerNGINX

Architecture Blueprint

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

Controlled perimeter

01 · Frontend · Input validation & normalization

Editorial Next.js App

Server-rendered publication, responsive workbenches, accessible UI

Architect’s note

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

Structured as a production-ready multi-service stack with Docker Compose, NGINX reverse proxying, role-based CMS administration, and privacy-first ephemeral document sessions.

  • —Designing each tool around a real user workflow—upload, inspect, validate, export—makes small applications genuinely useful.
  • —Combining deterministic Python engines (Tesseract, pandas, pypdf) with optional LLMs ensures tools remain transparent and dependable.

Scope note: Personal open platform; built with clear boundaries between public educational work and professional employment.