LogoTRUONG PHAM
Home
Projects
Portfolio
Blogs
YouTube
Contact

Newsletter

Stay updated with technical artifacts and engineering insights.

LogoTRUONG PHAM

Building scalable software and sharing insights on technology & life.

Sitemap

  • Home
  • Projects
  • Portfolio
  • Blogs
  • YouTube
  • Contact

Connect

  • GitHub
  • LinkedIn
  • Email
  • YouTube

© 2024 TRUONG PHAM. © All rights reserved.

Privacy PolicyTerms of Service
Back to projects

AI PDF Chatbot

Chat with enterprise documents instantly.

Built with RAG, vector search, streaming responses, and enterprise-grade access control.

Live DemoView Architecture
AI PDF Chatbot

Problem

Manual document search wastes hours across large PDF libraries.

Outcome

90% faster information retrieval with cited, source-grounded answers.

Solution Architecture

Production RAG stack — ingest, index, retrieve, and stream cited answers for enterprise document libraries.

10k+

Pages indexed

<2s

Retrieval p95

SSE

Streaming answers

Ingest pipeline

Upload

FastAPI

S3-compatible storage

→
Batch

OCR

Scanned PDF text extract

→

Chunk

Overlap-aware splitting

→

Embed

LangChain

OpenAI embeddings

Query & retrieval loop

top-k

Vector DB

Qdrant

Top-k semantic retrieval

→
RAG

LLM

OpenAI

Grounded answers + citations

→retrieve

Citations

  • p.12
  • p.47
  • p.103

What we shipped

Ingest APIAdmin consoleChat UIRBAC middlewareAudit logs

Multi-tenant document isolation

Page-level source citations

Private / on-prem deployment ready

Cross-cutting production layer

Auth & RBACRedis cacheObservability

Key Features

Multi-document chat

Query across entire libraries in one conversation.

Role-based access

Enterprise RBAC keeps sensitive docs internal.

Source citation

Every answer links back to page-level references.

Streaming answers

Token streaming for instant perceived response.

Admin analytics

Usage and ingestion metrics for ops teams.

Tech Stack

Next.jsFastAPIOpenAIQdrantPostgresDockerAWS

Need something similar?

Let's build your product.

Book a call