This is a submission for the Gemma 4 Challenge: Build with Gemma 4
What I Built
At LASU, students constantly ask each other things like "is this lecturer strict," "is this hostel safe," "what's SIWES actually like at this company," but that knowledge lives scattered across WhatsApp groups, Twitter threads, and word of mouth. It gets lost the moment a graduating class leaves. AMA was built to solve that: a shared memory for the school, where real student experiences get collected once and stay searchable by anyone, forever, instead of vanishing into a thousand disconnected chats.
Demo
Code
GitHub: https://github.com/MasterIfeanyi/hackathon-today
How I used Gemma 4
We used Gemma 4 (via OpenRouter) as the answer-generation model, and built the project around Retrieval-Augmented Generation (RAG), not fine-tuning, since we needed the answers to update instantly as new stories get submitted, without retraining anything.
The pipeline works like this: when a student submits a story or review, we generate an embedding for it using Google's Gemini embedding model and store both the text and the embedding in MongoDB Atlas, using MongoDB Vector Search as our vector database. When someone asks a question, we embed the question the same way, run a vector similarity search to pull the most relevant stories, and pass only those into Gemma 4 as context, so every answer is grounded in real submissions instead of the model guessing.
On the frontend, we used Next.js (App Router), Tailwind CSS v4 for styling, Zustand for lightweight UI state, and TanStack React Query for handling data fetching and caching.
Top comments (0)