Project Schoolboy � End-to-End Enterprise RAG System for 20+ Document Types
Work/Case Studies/Project Schoolboy
Enterprise AI & Vector RetrievalLive Production Deployment — Schoolboy AI / KnowledgeFlow AI
Project Schoolboy

End-to-End Enterprise RAG System for 20+ Document Types

Engineered an end-to-end enterprise Retrieval-Augmented Generation (RAG) platform parsing 20+ heterogeneous document types, featuring token-aware recursive chunking, FAISS vector search, and strict cross-domain isolation between Finance and Medicine.

Engagement Scope: Production RAG Pipeline, Vector Indexing & Resilience Architecture

Engineered the multi-format document parser, FAISS vector search index, and Gemini 2.0 key-rotation resilience pool under active user traffic.

System ArchitectureProduction EngineeringPerformance Optimization
01The Problem & Business Challenge

Enterprise corporate knowledge is fragmented across 20+ file formats (scanned PDFs, DOCX, multi-sheet XLSX, presentations). Standard RAG tools suffered from context truncation at arbitrary chunk boundaries, high hallucination rates, API key exhaustion under peak traffic, and dangerous data cross-contamination between sensitive business verticals.

02The Architectural Solution

Built a production-grade RAG pipeline using DocExtractor for 20+ formats, token-aware recursive semantic chunking (100–800 tokens with overlap), BGE-M3 FP16 embeddings, FAISS IndexFlatL2 for sub-50ms KNN retrieval, and an intelligent proxy managing Gemini 2.0 Flash with automated key rotation and retries.

03What We Built & Execution Details

Engineered normalized table-extraction routines preserving row/column relations. Implemented hard tenant and domain isolation at the retrieval index level to guarantee medical and financial data can never cross-pollinate. Configured automated exponential-backoff retries across an active pool of rotated API keys to absorb enterprise concurrency surges.

04Engineering Challenges & Trade-Offs

Preserving complex financial balance sheets and medical dosage tables across chunk boundaries without losing semantic context; architecting zero-leakage mathematical domain boundaries in vector space; managing LLM key rotation without dropping active streaming responses.

Measured Commercial Outcome

Deployed to live production handling active enterprise traffic; seamless extraction across 20+ document types; sub-50ms semantic context retrieval; zero context leakage between medical and financial datasets.

Documented metric during engagement period
My Contribution & Role
Lead AI Architect & Systems Engineer

End-to-end technical leadership: domain modeling, system architecture, database design, hands-on production code, and zero-defect deployment.

Technologies Deployed
PythonFastAPIFAISS (IndexFlatL2)BGE-M3 EmbeddingsGemini 2.0 FlashDocExtractorRedis
Related Blueprint
Inspect Technical Architecture
View failure mode analysis
Confidential Engagement

Presented under fictional portfolio codename. Specific commercial entities and confidential operational identifiers have been withheld to respect non-disclosure obligations.

“Building an enterprise RAG system that actually works in production is incredibly hard. We came to Shubham and his team with massive doubts about handling 20+ file formats, preserving context during chunking and keeping our Finance and Medicine data strictly isolated. Today, it runs flawlessly under real user traffic.”
Founder
Founder & CEO • KnowledgeFlow AI / Schoolboy AI
Verified Engagement
Absolute IP Ownership

You own the system.
The code. The infra. The data.

Software should not become valuable enough to matter and then be impossible for the client to own or operate.

Everything I build is 100% client-owned intellectual property from day one. You own the code, the accounts, the infrastructure, and the data. No vendor lock-in.

What belongs to you in full:

  • 01Source code & Complete Git Repositories
  • 02Apple, Google & Enterprise Developer Accounts
  • 03Cloud Infrastructure, VPCs & Production Databases
  • 04Figma Design Files, Assets & Documentation
  • 05CI/CD Deployment Pipelines & Signing Keys