SabiMate

A study-abroad guidance platform I built solo: a Flutter app and a FastAPI backend whose AI assistant answers from each student's own profile.

Tech stack

  • Flutter
  • FastAPI
  • PostgreSQL
  • Dart
  • Riverpod
  • GoRouter
  • Python
  • SQLAlchemy
  • Alembic
  • Redis
  • Docker
  • OpenAI Responses API
  • Server-Sent Events

Overview

SabiMate is an AI-powered study-abroad guidance platform. A student builds a profile once (qualifications, grades and grading system, English test results, preferred destinations, budget, funding needs and scholarship interests) and every answer is shaped by it.

I designed and built it alone: the Flutter app for Android and iOS, the Python backend and database, the AI orchestration and a research system that backs its answers with sources.

The problem

Planning to study abroad means piecing together admission requirements, tuition, proof-of-funds rules and scholarships from university, government and scholarship websites. Each assumes you already know which rules apply to you.

SabiMate starts from the student's situation and brings that research into one place.

The solution

The profile is the foundation. The backend combines it with the conversation so far, so the assistant answers with the student's grades, budget and destinations in mind.

Questions about programmes, scholarships, admission and funding go through a separate research workflow. It plans searches, retrieves and screens sources, and returns an answer with citations the student can open and check.

See SabiMate in action

Asked about studying for a master’s degree in Canada in 2027 as an international student from Nigeria, the assistant explains the admission and study-permit requirements with linked sources, then answers a follow-up about proof of funds.

52-second screen recording, no audio

What I built

Mobile application

A Flutter app structured in Clean Architecture layers, with Riverpod for state and GoRouter for navigation. It covers onboarding, authentication, a six-step student profile and persistent conversations. Replies stream in over Server-Sent Events and render as Markdown, with follow-up suggestions and source citations.

Backend

A FastAPI service that owns accounts, profiles, conversations and the orchestration of every reply. PostgreSQL stores state through async SQLAlchemy, Alembic versions the schema, and Redis enforces rate limits and quotas. Accounts include email verification and password reset.

AI assistant and research

Each reply starts with context assembly from the profile and conversation history. Model calls go through one adapter on the OpenAI Responses API, routed to fast, standard or reasoning tiers by workload. Research has its own pipeline (planning, hosted web search, source retrieval, evidence screening and citation validation), so its cost and reliability controls never slow down ordinary chat. It researches programmes, scholarships, admission requirements and funding rules.

Engineering challenges

Personalised context

Problem
Generic advice is useless here, but sending everything with every request is slow and expensive.
Approach
A dedicated backend step assembles the student's profile, preferences and recent conversation for each reply.
Why it matters
Answers reflect the student's real situation while request size stays under control.

Streaming and persistence

Problem
Replies should appear as they are written, yet every message must survive a dropped connection.
Approach
Responses stream over Server-Sent Events while the backend persists each message and generation. Client and server share one message state, including how an interrupted generation is recorded.
Why it matters
A conversation reloads in a consistent state, even when a reply was cut off.

Research reliability

Problem
Study-abroad advice is only useful if the student can see where each fact comes from.
Approach
A fast-tier planner decides what to search, hosted web search finds candidates, official pages are retrieved through a hardened fetcher, evidence is screened, and citations are validated against the answer before it is shown.
Why it matters
Claims are traceable to sources the student can open. This improves reliability; it does not guarantee that every source or conclusion is correct.

Usage accounting and rate limiting

Problem
Every reply and search calls paid external services, so abuse or a retry loop turns directly into cost.
Approach
Redis enforces per-user rate limits and a daily research quota atomically. Usage is recorded idempotently per search, so a retry is never counted twice, and the limiter fails closed if Redis is unavailable.
Why it matters
Spending stays bounded and quotas stay accurate under concurrency and retries.

Architecture and maintainability

Problem
AI features change quickly. Without boundaries, prompts and model calls spread through the codebase.
Approach
The backend is split into modules with layer boundaries enforced by import-linter, typed interfaces checked by mypy, and model access confined to one provider adapter.
Why it matters
Prompts, retries and timeouts live in one place, the provider can be replaced, and new capabilities don't require reworking the app or data model.

Architecture and technical decisions

Flutter
One codebase for Android and iOS while the product takes shape.
FastAPI
A typed Python API that sits naturally beside the AI tooling.
PostgreSQL
The primary store for accounts, profiles and conversations.
SQLAlchemy and Alembic
Async data access and versioned schema changes, applied automatically on deployment.
Redis
Fast atomic counters for rate limits and quotas, kept out of the primary database.
One model adapter
A single integration point on the Responses API, with fast, standard and reasoning tiers matched to each workload. The extra layer is the cost of a replaceable provider.
Separate research path
Research is slower and costlier than chat, so it has its own pipeline, quota and flag.
Feature flags
Control which assistant and research capabilities are enabled in each environment, so they run in development and demos before public release.
Docker
The same containerised environment for development and deployment.

Testing and engineering quality

The backend has roughly 240 test files (a file count, not a count of test cases) covering unit and integration tests. Integration tests run against real PostgreSQL and Redis, while fakes replace the model and search providers so tests stay deterministic and never call paid APIs.

Mypy checks types, import-linter enforces the architecture boundaries, and CI workflows run the checks automatically.

Current status

Implemented
Accounts with email verification and password reset, onboarding and profile management, the profile-aware AI assistant, source-backed programme and scholarship research, persistent conversations with streamed replies, and backend deployment with automated migrations.
Demonstrated
The demo video shows the assistant and research workflow working end to end: a profile-aware answer with linked sources, then a follow-up question.
Availability
Feature flags enable the assistant and research per environment. They run in development and demo environments and are not yet open to the public.
Planned
Saved items, billing, social sign-in, notifications, and a curated programme and scholarship database.

SabiMate has no university partnerships and does not guarantee admission, scholarships or visa outcomes.

Let's work together
Leave a message below and I'll get back to you by email.