SHUBHAM KUMAR / CASEFILE
Portfolio All projects
FILE / AI & SOFTWARECASE NO. 009 · HACKATHON TEAM PROJECT

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.

Evaluation cases
29
Unique cases in the documented evaluation set
Demo student profiles
30
Fictional records used for local scenarios
Workflow
01
One LangGraph workflow coordinates the steps
Team
03
Three-person hackathon project

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.

01 / CLIENTStreamlit UI

Question, selected context, and response presentation

02 / APIFastAPI + Pydantic

Request validation, identity header, structured response contract

03 / CONTROLLangGraph workflow

One controlled route through retrieval, tools, checks, and response

Request-dependent components

04A / RETRIEVALEmbeddings + ChromaDB

Search policy chunks and retain source, section, version, and page metadata

04B / TOOLSDeterministic Python tools

Calculate attendance, results, and eligibility using explicit rules

04C / GENERAL CHATDirect model route

General questions can skip retrieval and use the configured local model

05 / GUARDRAILSEvidence + policy checks

Source precedence, authorization, uncertainty, and refusal paths

06 / LANGUAGELocal Qwen via Ollama

Explain checked evidence or answer general questions when configured

07 / VALIDATEResponse validation

Check response type, citations, required fields, and boundary behavior

08 / OUTPUTAnswer + trace

Source citations, trace ID, and audit record

UPLOADPOST /ingest

File plus source metadata

PROCESSExtract + chunk

Prepare searchable text with source anchors

STOREChromaDB + SQLite register

Index chunks and persist source metadata separately

POLICY QUESTION PATH

Retrieve before explaining.

A policy question searches source-indexed chunks, checks document scope and precedence, and only then composes a citation-aware explanation.

ILLUSTRATIVE REQUEST
“What does the placement policy say about PPO reporting?”

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.

01 / RECEIVE

Validate the request

FastAPI endpoints use Pydantic request/response schemas. The workflow classifies the request before calling a component.

02 / ROUTE

Retrieve or calculate

Policy questions use document retrieval with source metadata. Student-specific questions use deterministic Python tools over SQLite records.

03 / RESPOND

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.

STEP 01

Receive + validate

Parse the request and validate the payload. Personal-data tools require a trusted student identity.

STEP 02

Route by intent

Use the workflow's rules-based routing for policy, record, calculation, and general-chat paths.

STEP 03

Fetch or calculate

Retrieve source passages or run deterministic Python tools over SQLite records.

STEP 04

Check the evidence

Apply source applicability, supersession, authority, recency, and conflict handling.

STEP 05

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.

01 / ARCHITECTURE

Set the system structure

Led problem breakdown, architecture choices, shared interfaces, and the design of one central LangGraph workflow.

02 / BACKEND

Build the request path

Built FastAPI endpoints with Pydantic validation and connected policy retrieval and deterministic Python tools through the routed workflow.

03 / INTEGRATION

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.

01 / STRUCTURE

Evaluation set reviewed

The report documents 29 unique cases with the required categories and independent tool-value oracles.

02 / TOOL LOGIC

Independent oracle checks

Seven tool-oriented cases are reported as passing against calculations made independently from the raw CSV values.

03 / LIMITS

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.

SYNTHETIC DEMO DATA

Data footprint

Fictional records

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.

DOCUMENTED CHECKS

Evaluation status

Partial
✓
29 evaluation cases

Case structure and required categories checked.

✓
7 independent tool-oracle cases

Reported as passing against independent calculations from source CSV values.

…
Full RAG / LLM run pending

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.

  1. Synthetic records. Student profiles, marks, and attendance scenarios are fictional demo data.
  2. 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.
  3. Human verification still matters. OCR-derived source text can contain errors. Verify the original document and cited page before relying on a clause.
  4. 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.

ESC