DocsInsights

The project at a glance.
An AitchSoft product. An AI-powered learning and document intelligence platform: users upload PDF, Word, PowerPoint, or EPUB files and get summaries, key points, and context-aware AI chat, then study with AI-generated quizzes and flashcards. AI features run on a usage-based credit system, with Stripe subscription plans for higher limits.
Built with
Screens
Inside the product

What I built
Key contributions
Built AI-powered flashcards and quizzes, turning the platform into an interactive learning tool for studying and self-assessment.
Designed and implemented a credit system that gives users credits to use the platform's AI features, with usage-based access control.
Integrated Stripe payments and subscription plans, so users can purchase a plan and unlock higher usage-based limits.
Implemented AI-powered document summarization and document-context chat, answering questions from the uploaded document's own content.
Implemented a Retrieval-Augmented Generation (RAG) workflow to ground AI responses in the user's document context.
Supported PDF, DOCX, PPTX, and EPUB, with file import from Google Drive and Microsoft OneDrive.
Implemented Firebase Authentication, Firestore data management, and production deployment workflows.
How it was built
The reasoning behind the build.
The problem
Users upload documents in whatever format they have on hand — a PDF, a slide deck, an EPUB — and expect one coherent chat experience regardless. Each format has a fundamentally different internal structure, so a single naive approach doesn't hold up across all of them.
The constraint
An LLM's context window is neither free nor unlimited. Re-sending an entire document on every chat message doesn't scale in cost or latency, and that lag becomes noticeable the moment a document grows past a few pages.
The decision
I designed this as a retrieval pipeline rather than a full-context prompt: each upload is normalized into clean text, chunked, and embedded once. A chat message then retrieves only the chunks relevant to that question, instead of replaying the entire document every time.
The tradeoff
Retrieval quality depends heavily on chunk boundaries — a poorly placed cut can split a table or a paragraph, and the model will answer confidently from an incomplete fragment. Summaries run through a separate whole-document pass rather than the chat's chunk-retrieval path, trading extra pipeline complexity for noticeably more coherent first-summary output.