cd /news/artificial-intelligence/ask-me-anything-rag · home topics artificial-intelligence article
[ARTICLE · art-73523] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Ask me anything (RAG)

A developer built AMA, a Retrieval-Augmented Generation (RAG) system for Lagos State University (LASU) that uses Gemma 4 via OpenRouter to answer student questions about lecturers, hostels, and internships based on a searchable database of real student experiences stored in MongoDB Atlas with vector search.

read1 min views1 publishedJul 25, 2026

This is a submission for the Gemma 4 Challenge: Build with Gemma 4

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.

GitHub: https://github.com/MasterIfeanyi/hackathon-today 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.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @lasu 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ask-me-anything-rag] indexed:0 read:1min 2026-07-25 ·