An AI-assisted degree planning prototype for California Baptist University course advising. The project combines a FastAPI backend, a React frontend, and a Neo4j course graph to answer planning questions through a chat interface with streamed responses.
This repo is a portfolio prototype focused on three ideas:
- modeling course relationships in Neo4j
- exposing degree-planning behavior through a lightweight FastAPI API
- delivering an interactive chat UI with streaming responses in React
The current implementation is a graph-backed planner rather than a full production advising system. It is best understood as an engineering prototype that demonstrates full-stack integration, graph data modeling, and LLM-assisted UX.
- Frontend: React + Vite + Tailwind chat interface for submitting planning questions and rendering streamed markdown replies.
- Backend: FastAPI service that seeds the course graph on startup and streams LLM output over Server-Sent Events.
- Data layer: Neo4j stores course nodes plus prerequisite relationships derived from the course catalog JSON.
- LLM layer: OpenAI-compatible chat completion client. The default local setup targets Ollama, but the backend can be pointed at another compatible endpoint through environment variables.
What is in good shape:
- frontend builds successfully with Vite
- Docker-based local development setup exists for frontend, backend, and Neo4j
- course catalog data and graph seeding flow are present in-repo
- the project has a coherent prototype story for a portfolio
What still needs polish:
- backend behavior has recently been refactored and should be smoke-tested end to end before public release
- there is no formal automated test suite yet
- the UI is functional but still minimal
- the planner is a prototype, not an authoritative advising tool
- Backend: Python, FastAPI, Uvicorn
- Frontend: React, Vite, Tailwind CSS
- Data: Neo4j
- LLM integration: OpenAI-compatible API, local Ollama by default
- Dev environment: Docker, Docker Compose, Makefile
degree_planning_agent/
├── backend/
│ ├── app.py
│ ├── requirements.txt
│ ├── LLM/
│ │ ├── load.py
│ │ └── llm_config.py
│ ├── graph/
│ │ ├── course_data.json
│ │ ├── graph_query.py
│ │ ├── neo4j_connect.py
│ │ └── seed_graph.py
│ └── utility/
├── frontend/
│ ├── src/
│ │ ├── App.jsx
│ │ └── components/
│ └── package.json
├── docker-compose.yml
├── Makefile
└── README.md
- Docker and Docker Compose
- Node.js 20+ if running the frontend outside Docker
- Python 3.11+ if running the backend outside Docker
- An OpenAI-compatible LLM endpoint or Ollama running locally
Create a local env file:
cp .env.example .env
Key variables:
OPENAI_API_KEYOPENAI_BASE_URLLLM_MODELNEO4J_URINEO4J_USERNAMENEO4J_PASSWORD
make dev
Useful commands:
make logf
make devstop
make devclean
cd frontend
npm install
npm run dev
GET /health checkGET /plan_stream?question=...streamed planner responseGET /reset_sessionclears the in-memory conversation state
This project shows:
- graph-oriented data modeling for prerequisite relationships
- a streaming chat UX over SSE
- full-stack coordination across React, FastAPI, Neo4j, and Docker
- pragmatic refactoring from a heavier RAG approach to a simpler graph-backed prototype
- add a small automated smoke test for backend startup and graph queries
- improve planner grounding using structured graph-query tools
- strengthen the UI with starter prompts and conversation/session handling
- deploy a stable demo environment
This is an educational prototype and should not be treated as official academic advising.