TrueStack — Student Services AI Assistant
How do you answer student questions with useful, source-backed guidance while keeping personal-record calculations deterministic, private, and auditable?
Ground answers in the right kind of evidence.
The assistant routes each request to document retrieval, deterministic data tools, or general conversation according to the question and available evidence.
One workflow. Four request paths.
Choose a request type to highlight the components that take part. This is a map of the repository's design, not a live backend connection.
Question, selected context, and response presentation
Request validation, identity header, structured response contract
One controlled route through retrieval, tools, checks, and response
Request-dependent components
Search policy chunks and retain source, section, version, and page metadata
Calculate attendance, results, and eligibility using explicit rules
General questions can skip retrieval and use the configured local model
Source precedence, authorization, uncertainty, and refusal paths
Explain checked evidence or answer general questions when configured
Check response type, citations, required fields, and boundary behavior
Source citations, trace ID, and audit record
File plus source metadata
Prepare searchable text with source anchors
Index chunks and persist source metadata separately
Retrieve before explaining.
A policy question searches source-indexed chunks, checks document scope and precedence, and only then composes a citation-aware explanation.
Streamlit → FastAPI → LangGraph → retrieval → evidence checks → Qwen → response validation.
Route by request—not by guesswork.
FastAPI validates the request, then the central workflow selects the appropriate retrieval or tool path and returns structured output with trace information.
Validate the request
FastAPI endpoints use Pydantic request/response schemas. The workflow classifies the request before calling a component.
Retrieve or calculate
Policy questions use document retrieval with source metadata. Student-specific questions use deterministic Python tools over SQLite records.
Validate and audit
The response path preserves citations, response types, trace IDs, audit records, and explicit uncertainty or refusal when evidence is missing.
Retrieval
Sentence Transformers and ChromaDB are included for indexed document retrieval; source metadata and policy precedence matter alongside similarity.
Deterministic tools
SQLite-backed student, attendance, results, and eligibility scenarios keep calculations in code instead of asking a language model to invent numbers.
Local model path
When configured for real inference, local Qwen runs through Ollama. Mock mode is intended for pipeline smoke tests, not model-quality claims.
Receive + validate
Parse the request and validate the payload. Personal-data tools require a trusted student identity.
Route by intent
Use the workflow's rules-based routing for policy, record, calculation, and general-chat paths.
Fetch or calculate
Retrieve source passages or run deterministic Python tools over SQLite records.
Check the evidence
Apply source applicability, supersession, authority, recency, and conflict handling.
Return a traceable result
Validate the answer structure and retain citations, trace ID, audit metadata, or a clear refusal.
Team lead, backend, and integration.
This was a three-person project. My main ownership was the end-to-end workflow and the interfaces that let the separate components work as one application; the UI and final integration were team efforts.
Set the system structure
Led problem breakdown, architecture choices, shared interfaces, and the design of one central LangGraph workflow.
Build the request path
Built FastAPI endpoints with Pydantic validation and connected policy retrieval and deterministic Python tools through the routed workflow.
Make it traceable
Coordinated response types, trace IDs, audit logging, integration testing, Docker-based setup, and the end-to-end technical walkthrough.
The team split component work across policy and retrieval, student data and deterministic tools, and the central backend workflow. The repository README documents that ownership division and identifies the Streamlit interface and final integration as team efforts.
Separate checks from claims.
The repository contains a structured evaluation set and independent checks for deterministic-tool outputs. Its dated report explicitly distinguishes those checks from a full end-to-end RAG/LLM evaluation.
Evaluation set reviewed
The report documents 29 unique cases with the required categories and independent tool-value oracles.
Independent oracle checks
Seven tool-oriented cases are reported as passing against calculations made independently from the raw CSV values.
Full-stack status remains open
The report says live RAG/LLM evaluation and seven recently added routing/relevance regression tests had not yet run in that environment. No overall accuracy or latency result is claimed here.
Show what was checked—not just a success badge.
The latest repository report records repeatable structural and deterministic-tool checks, but it explicitly does not claim a completed end-to-end RAG/LLM evaluation.
Data footprint
Bars use the same count scale (maximum = 90 rows). The student records and policy edge-case fixtures are synthetic and must not be treated as real academic records.
Evaluation status
Case structure and required categories checked.
Reported as passing against independent calculations from source CSV values.
Live retrieval, local-model behavior, citation support, and seven new routing regression tests still required verification in the report dated 23 October 2026.
A demo—not an official student service.
The project demonstrates routing, grounding, privacy checks, and auditable calculations. It is not connected to DTU’s live student systems and must not be used to make real academic decisions.
- Synthetic records. Student profiles, marks, and attendance scenarios are fictional demo data.
- Sample policies are labelled. Synthetic policy documents explicitly say they are not official DTU policy; real-source citations and synthetic examples must not be conflated.
- Human verification still matters. OCR-derived source text can contain errors. Verify the original document and cited page before relying on a clause.
- Local setup affects behavior. Actual model inference requires the configured local Qwen/Ollama setup; mock mode is for smoke testing.
What I built
Backend endpoints, request validation, central workflow routing, component integration, response structure, trace IDs, and audit logging.
What I learned
How to connect retrieval and deterministic tools without treating an LLM as the source of truth for policy precedence or personal-record calculations.
What remains
Complete live end-to-end evaluation, rerun the latest regression tests, review citation support, and validate operational security before any real deployment.