Building an AI Advisor Around the UC Davis Catalog

Building AggieBuilder: 10,000 courses, 331 catalog sections, retrieval before generation, and everything AWS taught me.

In this case study↓

AggieBuilder started at Cal Hacks as a quarter-by-quarter planner for UC Davis. It grew into a course finder and a catalog-assisted advisor for questions a schedule grid can’t answer on its own.

At a glance

Timeframe
Oct 2025 (Cal Hacks) – 2026
My role
Product, design and full-stack engineering
Stack
React 18 · TypeScript · Vite · Express · PostgreSQL · Redis · AWS · Gemini
Links
GitHub ↗
10,000+courses in the database
331catalog program sections parsed
~9,500GE course mappings

The product

AggieBuilder has two halves: a schedule laid out by quarter, and a set of tools for filling it. These are a Course Finder, starred courses, analytics, major requirements and transcript upload. Students sign in with Google, so their plan follows them.

AggieBuilder Course Finder showing ECS 036C details
The Course Finder running on the real catalog data: units, grading, course rating, description, prerequisites, GE areas and a one-click "Add to Quarter".
AggieBuilder schedule view and sidebar
The app shell: major, GPA and tools on the left, and the academic schedule, which opens after Google sign-in.

Built for the quarter system

The core is simple on purpose. You get a grid of academic years, each split into Fall, Winter and Spring. You drop courses into quarters, move them around and add a fifth year if you need one, and it tracks your major and GE requirements as you go. Most planners assume semesters, which feels wrong straight away at Davis. Ten-week terms change how you think about prerequisites and course load, and the interface should reflect that.

Why the advisor starts with a program lookup

Students had questions the grid couldn't answer: Can I double-major in this? What's the prerequisite chain for that upper-division course? A general chatbot answers those confidently and is often wrong. It invents prerequisites and mixes up majors. When the question is whether you graduate on time, that's worse than no answer at all.

Retrieval first, generation second

So the assistant works the other way round. First, I parsed the undergraduate catalog into structured data: 331 program sections, each with its department, description, major and minor requirements, advisors, and preparatory and depth subject matter. Some of the parse wasn't clean enough, especially the major requirements, so I went through those by hand and wrote guidelines for how they should be parsed.

Question"What do I need for a CS minor?"
→
Retrieveprogram-name and keyword indexes
→
Geminireceives the retrieved program record
→
Answergrounded in the catalog

The catalog record is supplied as context for generation. If generation fails, the requirements path can return structured catalog information.

Everything AWS taught me

Building the app took weeks. Getting it reliably online taught me just as much. AggieBuilder runs on an Express API with PostgreSQL on AWS RDS, Redis for caching, Docker on ECS, and Google OAuth. Along the way I ran into:

  • OAuth that worked locally and failed in production because of the authorised origins setting.
  • Migrating the database from local to RDS, and the backups you take before trying it.
  • AWS bills, and the cost-optimisation scripts that came after.

I started writing a short markdown note every time something broke and I fixed it. Those notes became the project's deployment docs, and I now do this for everything I build.

Where the advisor can still go wrong

The requirements path asks for clarification when it can’t identify a program and handles missing records explicitly. Once a record is found, Gemini writes the response without claim-level citation verification. I’d test ambiguous program names, multi-program comparisons, and cases where a prerequisite is missing before expanding to additional catalogs.

Keep reading

View all