End-to-end RAG-powered higher education conversational assistant with schema-aware chunking, vector retrieval, voice streaming, and WordPress embedding.
Problem Statement
Higher education institutions manage vast, complex catalogs of unstructured and semi-structured training documents, including academic handbooks, curriculum roadmaps, admission PDFs, FAQ CSVs, and campus navigation guides. Prospective and enrolled students frequently struggle to find authoritative answers quickly. This solution delivers a domain-grounded conversational AI assistant capable of answering student inquiries accurately using institutional source materials with verified retrieval grounding.
Role & Contributions
•Role: Full Stack Developer / AI Integration Engineer.
•Implemented core components of the end-to-end RAG pipeline for structured CSV and PDF documents.
•Built the interactive React chatbot user interface with real-time token streaming and voice controls.
•Integrated VoyageAI dense embeddings and Pinecone vector database with metadata filtering.
•Implemented retrieval tracing, context deduplication, and grounded Gemini LLM response assembly.
•Integrated Deepgram real-time Speech-to-Text (STT) and Text-to-Speech (TTS) for voice conversations.
•Configured secure cross-origin WordPress iframe embedding for university web pages.
System Architecture & Responsibilities
The system enforces strict architectural separation of concerns across three primary tiers:
•React Frontend Tier: User chat interface, audio recording/playback controls, streaming token renderer, and conversation history view.
•Node.js Gateway Tier: Frontend integration layer handling session management, browser streaming coordination, and security boundary.
•Python / FastAPI AI Backend Tier: High-performance AI microservice orchestrating document ingestion, chunking, embedding generation, Pinecone vector querying, LLM prompt assembly with Gemini, and Deepgram voice integration.
Knowledge Ingestion Pipeline:
Source Documents (PDF / CSV / FAQs / Academic Roadmaps)
│
▼
Structural Parsing & Validation
│
▼
Schema-Aware Document Chunking (spaCy NLP)
│ ├── Preserves tabular column-row relationships in CSVs
│ └── Semantic paragraph segmentation in academic PDFs
│
▼
VoyageAI Dense Vector Embeddings Generation
│
▼
Pinecone Vector Database (Indexed with Metadata Filters)
────────────────────────────────────────────────────────────
Query & Response Retrieval Pipeline:
User Query (Text or Voice Audio via Deepgram STT)
│
▼
FastAPI AI Backend: Query Pre-processing & Embedding
│
▼
Pinecone Similarity Search (Top-K Dense Vector Retrieval)
│
▼
Metadata Filtering (Document Type, Category, Academic Year)
│
▼
Context Deduplication & Semantic Re-ranking
│
▼
Ranked Context Assembly + System Prompt
│
▼
Google Gemini LLM (Grounded Context Completion)
│
▼
Token Streaming Response (Server-Sent Events)
│
├── Node.js Streaming Gateway
│ │
│ ▼
│ React Chatbot UI (Markdown & Token Stream)
│
└── Deepgram TTS (Real-Time Audio Stream Synthesis)
Key Technical Innovations
•Schema-Aware Chunking: Standard naive fixed-size chunking destroys tabular semantics in CSV training files and academic requirement grids. Implemented schema-aware chunking that preserves row-header associations and document hierarchies, ensuring retrieved passages retain complete factual context.
•Metadata Filtering & Retrieval Tracing: Added structured metadata tagging (source department, document version, publication date, semester) allowing dynamic query-time filtering in Pinecone. Implemented retrieval tracing to log and inspect similarity scores and retrieved passage IDs.
•Context Deduplication: Ingesting overlapping documents can flood LLM context windows with redundant passages. Added semantic deduplication to prune repetitive chunks before passing context to Gemini, maximizing informative context within token limits.
•Low-Latency Token Streaming: Engineered Server-Sent Events (SSE) streaming from FastAPI through the Node.js layer to the React client, achieving immediate perceived response time for users.
•Multimodal Voice Integration: Connected Deepgram streaming STT for hands-free student queries and Deepgram TTS for natural voice playback of answers.
•WordPress Iframe Embedding: Packaged the React client as an embeddable widget with cross-domain postMessage synchronization for university portal WordPress installations.
Impact & Verification
Verification Status: Confirmed historical solution deployed and used by approximately 50 users during institutional evaluation.
•Successfully delivered verified, source-grounded answers without hallucinating non-institutional policies.
•Provided natural dual-mode (text and voice) interaction across desktop and mobile browsers.