All work
Shipped2024

E-UBCV

RAG chatbot for the University of Batangas.

Role
Lead developer — freelance
Impact
Client project
Stack
Next.js · LangChain · OpenAI · PostgreSQL

Overview

An AI assistant for the University of Batangas that answers questions about the university and its core values, grounded in the institution's own documents. Users sign in, keep their conversations, and can hear each answer spoken back by a 3D avatar.

Retrieval pipeline

Source PDFs are split into overlapping chunks, embedded with OpenAI embeddings and indexed in a vector store. A history-aware retriever rewrites each follow-up into a standalone question before searching, so answers stay grounded across a whole conversation.

GPT-4o mini answers only from the retrieved passages and says so when the documents don't cover a question, instead of guessing.

Product

Conversations are saved per user in PostgreSQL through Prisma, each with an AI-generated title. Replies can be read aloud with OpenAI text-to-speech while a 3D avatar, built with React Three Fiber, turns to face the user. Sign-in supports Google and email through NextAuth.