UniMate
Four-person capstone team project. I was the PM and designed and built the AI agent and the RAG layer.
A campus-life service that crawls the school portal six times a day, embeds every notice, and lets a Claude agent pick the right one of three search tools to answer.
What this project gave me
- Keeping four people on one track for ten months as PM, by cutting scope and setting priorities
- Agent design learned by hand-writing the tool-selection loop without a framework's AgentExecutor
- Hands-on tuning of the variables that decide RAG quality: thresholds, chunk sizes, a synonym dictionary
- Seven rule documents written first, so every teammate's AI tooling produced code under the same rules
- Period
- Sep 2025 – Jun 2026
- Team
- 4 people · capstone
- Role
- PM · AI agent · RAG
- Status
- Done · conference paper award
- Highlights
- Encouragement Paper Award, Korea Data Science Society summer conference 2026 (2nd author)
- The agent chooses among three tools (keyword, deadline, vector similarity) in a loop of up to eight iterations
- 37 endpoints, 12 tables, 17 mobile screens, 8 web routes
- Stack
- FastAPI
- PostgreSQL
- pgvector
- Celery
- Redis
- Claude API
- LangChain
- OpenAI Embeddings
- Expo
- React
- Vite
- Tailwind
Web home: AI daily briefing and department interests
Web notice detail: AI summary and original link
Web AI chat: scholarships worth applying for
Web AI chat: leave-of-absence rules answered with source links
App home: campus recommendations for me
App notice detail: AI summary
App AI chat: scholarship recommendations
App AI chat: sources listed at the end of the answer
Background and goal
Scholarship notices, class changes and academic dates are scattered across the portal, department sites and boards. Every semester some students miss a deadline and pay for it. The goal was to gather notices in one place and let an agent do the searching and answering.
Main features
- Crawls six portal categories six times a day (07, 09, 12, 14, 16, 18h), upserts them and embeds them automatically.
- The agent “Hanshin-bot” picks the right tool for a question: keyword search over notices, deadline search, or vector similarity search (thresholds 0.60 for notices, 0.40 for regulation PDFs).
- Regulations are split into 1,500-character chunks as RAG evidence, and answers carry source URLs.
- Today’s and this week’s recommended notices, assignment and exam D-days, a personal calendar and a daily AI briefing.
- School-email verification, 30-minute JWT access tokens and 14-day rotating refresh tokens.
Architecture
The FastAPI backend is split into router, service, model and schema layers, with a rule that routers never touch the database directly. PostgreSQL runs the pgvector extension so 1,536-dimension embeddings live in the same database with an ivfflat index for cosine search. Celery Beat drives the crawler and Redis caches identical questions for an hour. There are two clients, an Expo mobile app and a Vite + React web app, sharing the same auth store structure.
What I owned
I wrote the agent loop myself instead of using AgentExecutor: at most five tool calls and eight iterations, and a retry with the next keyword whenever a search returned fewer than 50 characters. A synonym dictionary of 11 entries (for example a slang word for “work-study student”) and four query-type classes sit in front of search to raise recall. Reasoning runs on Claude and embeddings on OpenAI.
Problems solved
- passlib broke on Python 3.14, so the code calls bcrypt directly.
- React Native’s ReadableStream was unreliable, so SSE is received whole and parsed line by line on both mobile and web.
- A model-name typo once caused 404s, so environment values are validated at startup.
Results
- Encouragement Paper Award, Korea Data Science Society summer conference 2026 (2nd author)
- About 5,700 lines of Python on the backend, 7,000 on mobile, 1,400 on web
- Seven shared rule documents (about 1,500 lines) under
.claude/rulesso AI tooling wrote code under the same rules for everyone
Looking back
We never built an evaluation set to measure tool-selection accuracy as a number. Next time I would write a 50-question set before touching the agent.