Case Study / Applied AI

KIA

Knowledge Interactive Assistant

KIA started with a simple problem: the course had plenty of content, but finding the right thing at the right time was slow. I built the AI layer so students could ask questions against course material, keep context across turns, generate notes and practice, and get help when code failed.

Best Software Engineering Project Award AI Engineer 8 AI Capabilities RAG / Gemini / ChromaDB
01 / Why I built it

The course had enough content. Using it was the problem.

Lectures, slides and assignments were already there. What I wanted was a faster way to ask the course itself a question, compress a week before revision, generate practice from a topic and understand an error without hunting through everything manually.

THE GAP

Finding the right context took too long.

A student could have the answer somewhere in the course and still spend too long finding it. Long recordings, scattered weeks and raw programming errors made revision slower than it needed to be. A general model also had no reason to stay inside the course material.

THE RESPONSE

Put the AI where the student already works.

I built the AI features around the things a student was already doing: asking, revising, practising and debugging. Course context is retrieved first, conversation history is kept when it matters, and generated outputs are shaped for the UI instead of returned as loose text.

AskQuery course content with conversation context.
ReviewCondense lectures, weeks and specific topics.
PractiseGenerate questions and mock assessments.
DiagnoseTurn missed answers and code errors into next actions.
02 / Running product

This is the actual build.

If you only have a minute, start with the walkthrough. It shows the eight AI capabilities inside the product instead of describing them in isolation.

03 / How the chat path works

For chat, I retrieve course context before Gemini answers.

I did not want a generic chatbot answering from model memory. Course material is indexed first, relevant chunks are retrieved for the question, and previous turns come along when a follow up depends on them.

Core assistant pathGrounding before generation
01

Course material

PDF content and lecture material enter the ingestion flow.

02

Text splitting

1000 character chunks with 200 character overlap.

03

Embeddings

Sentence Transformers all MiniLM L6 v2 representations.

04

ChromaDB

Similarity retrieval over grounded course context.

05

History aware retrieval

Follow up questions are interpreted with prior turns.

06

Gemini

Retrieved context enters the task specific answer chain.

07

Product response

The final answer returns through the application workflow.

Conversation state

Per user chat history is persisted in SQLite and supplied through LangChain conversation history handling.

Retrieval depth

The assistant path requests the top three similar chunks for a query.

OrchestrationLangChain
Vector storeChromaDB
GenerationGemini
ApplicationFlask / Vue 3
04 / My part

What I actually built.

My role was AI Engineer. I worked on the retrieval and memory path, structured generation, the learning workflows and the integration points that made those pieces usable from the app.

01

Retrieval and memory

I built the course assistant around document loading, text splitting, embeddings, ChromaDB retrieval and persisted conversation history.

02

Structured generation

Where the UI needed fixed fields, I used task specific prompts and structured parsing instead of trusting free form model text.

03

Learning workflows

I worked on the AI flows for summaries, notes, practice questions, mock assessment, feedback and programming error explanation.

04

Application integration

I connected the AI work to the Flask backend and Vue interface so it appears where a student is already studying, practising or debugging.

Implementation you can inspect

The parts I would open first in a code review.

05 / What it can do

The eight AI capabilities.

They solve different parts of studying. Some reuse the same retrieval and generation pieces, but this was not one prompt duplicated across eight buttons.

Retrieval / memory

Contextual course assistant

Answers course questions from retrieved material and keeps earlier turns when the next question depends on them.

Input: student query and chat history / Output: grounded course answer
Synthesis

Lecture summarization

Turns lecture material into a shorter, structured summary that is easier to revise from.

Input: lecture content / Output: structured lecture summary
Synthesis

Week summarization

Combines the lectures from a week into one review so the student does not have to rebuild the thread manually.

Input: week content / Output: unified week summary
Focused generation

Topic notes

Generates focused notes for one selected topic instead of summarising the entire week.

Input: selected topic / Output: focused study notes
Practice generation

Topic questions

Builds practice questions around a chosen concept, including conceptual and code based questions.

Input: topic / Output: structured practice set
Assessment

Mock quiz generation

Creates question sets with options, correct answers and explanations in a predictable structure.

Input: assessment context / Output: structured mock test
Feedback

Topic recommendations

Uses quiz performance to point the student back to the topics worth reviewing instead of stopping at a score.

Input: quiz outcome / Output: targeted review guidance
Error reasoning

Programming error explanation

Reads the submitted code and error context, explains what went wrong in plain language and suggests a fix.

Input: code and failure output / Output: diagnosis and fix guidance
06 / Product evidence

Screenshots from the running product.

These are not mockups. They are frames from the project itself. Open any one to inspect it at full size.

Kia's landing screen inside the course dashboard, offering weekly summaries and topic notes 01
Course entry Kia's entry point inside the course dashboard. A student can jump straight to a task or just start typing.
Kia chatbot answering a Gini impurity question with cited lecture references 02
Grounded answer Kia retrieving and citing lecture numbers 9.1, 9.3, and 9.4 for a Gini impurity query.
Kia explaining the Naive Bayes classifier with a structured, bolded breakdown 03
Structured explanation Structured explanation of Naive Bayes, broken into the parts a student actually needs to check.
Kia recommending specific video lectures on decision trees 04
Lecture routing Pointing to the exact lecture videos on decision trees instead of a generic answer.
Generated Week 7 summary covering Naive Bayes with formal theorem notation 05
Week synthesis Week level summary generator rendering Bayes' theorem correctly, including the conditional independence assumption.
Generated notes on CNN architectures with a comparison table and code example 06
Topic notes Topic notes generator. CNN architecture comparison table plus Keras code, generated on demand.
Generated practice questions on backpropagation including a code-tracing question 07
Practice generation Generated practice set on backpropagation, mixing conceptual recall with a code tracing question.
Mock Quiz 2 interface with a scikit-learn StandardScaler code question 08
Mock assessment Mock quiz engine. Questions embed real, runnable code, here a StandardScaler and Keras RNN question set.
Generated performance report with score and specific named topics to review 09
Targeted feedback The generated performance report, naming StandardScaler, return_sequences, and KFold instead of a bare percentage.
AI error analysis explaining a type mismatch bug in submitted Python code 10
Error diagnosis Live error diagnosis on a real submission. Type mismatch identified and fixed in one suggested line.
07 / Engineering choices

What I learned while building it.

The important decisions were less about finding a clever prompt and more about where context, state and structure belong.

Grounding

Retrieve before answering

For course questions, the relevant material should come first instead of asking the model to fill the gaps from memory.

State

Keep the turns that matter

A follow up question often makes no sense alone, so conversation history has to be part of the retrieval path.

Structure

Do not make the UI guess

If a quiz needs options, an answer and an explanation, the model output should arrive in that structure every time.

Workflow

Keep AI inside the task

The feature is more useful when it appears inside revision, practice or debugging instead of living as a separate novelty.

AI

Gemini
LangChain
Hugging Face
ChromaDB

Backend

Python
Flask
SQLAlchemy
SQLite

Frontend

Vue 3
Vue Router
Axios
Bootstrap

Product engineering

JWT authentication
Database migrations
REST style routes
PDF report flows

08 / What I would change

If I rebuilt it today, this is where I would start.

I am not presenting the archived project as a production service. It has rough edges, and they make the next engineering work pretty clear.

Current limitations

  • Some Vue AI interactions remain prototype or simulated interface paths.
  • The chatbot still contains local course file paths that should become configurable ingestion.
  • The archived backend dependency file does not capture every AI package imported by the modules.
  • There is no formal automated LLM evaluation suite in this version.
  • There is no production observability layer in the archived system.

Next engineering pass

01

Replace local content paths with a configurable ingestion and indexing service.

02

Add retrieval, groundedness and structured output evaluations with repeatable test sets.

03

Add tracing, latency, token usage, cost and failure observability across AI calls.

04

Harden dependency management, deployment configuration and automated integration tests.

09 / External validation

It won Best Software Engineering Project.

The IIT Madras BS Degree Program selected the project for the Best Software Engineering Project Award. I worked as the AI Engineer on the seven person team.

Recognition

Best Software Engineering Project

The team built the complete learning product. My part was the AI layer: retrieval, conversation context, generation workflows and the points where those features connected back into the app.

Applied AI / what I want to keep doing

This is the kind of AI work I want to keep doing.

Not a model sitting by itself. A real workflow where retrieval, context, output structure, backend code and the user experience all have to work together.