← all chapters

chapter 06 · 2026

checking ideas before they’re built

A retrieval service that reads the department’s old catalogues, so a student does not propose a project that already exists.

The SofiCheck home page: a dark starfield with a Project Details panel and an Analysis Result panel, annotated by hand with the words input here, AI analysis, and results shown here.
the annotated home page, before the trial ended

Every year a batch of students proposes final year projects. Some of those ideas already exist in the department’s catalogues, from four or five years ago, under a different name. Finding that out is manual, slow, and usually happens too late.

SofiCheck checks a proposed project against the archived catalogues before anyone builds it.

It is retrieval first and generation second. The catalogues are read from PDF, split into title, abstract, and technologies, embedded with a local ONNX model, and written into Qdrant. When a student submits an idea, the service retrieves the three closest catalogue entries above a similarity threshold and puts them into a prompt.

SofiCheck — ingest and query paths

Only then does a model see the question. It is handed the retrieved projects and asked to compare, which means the answer is grounded in real catalogue entries instead of the model’s memory. Groq serves the chat model through Spring AI’s OpenAI-compatible client.

One decision I am still glad about: request logging is a Spring AI advisor, not controller code. It records the date, the time, and the token usage of every call into MongoDB. The service stays readable, and the analytics sit next to the thing they measure.

The catalogue files are not uniform. Some years keep the abstract and the technologies on one page; others split them or end sections differently. That is why ingestion is one class per year rather than one parser with flags in it.

It ran on an Azure free-trial VM for thirty days. The plan was fifty checks, for one student batch. It served 187 requests with 200 OK responses.