Assignment Helper.
LLM / RAG Software Engineering 2 Semesters

๐Ÿค– Campus FAQ Chatbot โ€” Benchmarking Retrieval Strategies

Every faculty office answers the same questions daily: registration, fees, hostel, graduation credits. A chatbot is the obvious fix โ€” but the research is in the retrieval: which search strategy actually finds the right answer in your university's documents?

1The Pitch โ€” Product + Research in One

๐Ÿ› ๏ธ What you build (the demo)

A web chat widget answering student FAQs from real university documents (handbooks, academic circulars, faculty FAQ pages) using Retrieval-Augmented Generation โ€” with source citations shown for every answer.

๐Ÿ”ฌ What you research (the grade)

RAG quality is decided by retrieval. You benchmark three retrieval strategies on a test set of real student questions and measure which surfaces the correct document โ€” before any LLM ever answers.

2Problem Statement & Objectives

Pernyataan masalah: Student inquiries overload faculty offices and Telegram groups; answers exist in official documents but are scattered and hard to search, and generic chatbots hallucinate university policies.

3Benchmark Design โ€” the 3 Experiments

ExperimentSetupWhat it proves
Eksperimen 1
Keyword (BM25)
Classic BM25 index over chunked documents; retrieve top-5 per question. The strong classical baseline โ€” surprisingly hard to beat on exact terms (course codes, fee names).
Eksperimen 2
Dense embeddings
Multilingual sentence-embedding model + vector store, same top-5 protocol. Whether semantic search handles paraphrased and Malay/English mixed questions better.
Eksperimen 3
Hybrid + rerank
BM25 โˆช dense candidates merged, then reranked (reciprocal rank fusion). Whether combining both closes the gap โ€” the trade-off table (quality vs latency vs cost) examiners want.

๐Ÿ“ฆ Dataset plan

Corpus: 30โ€“60 real documents (student handbook, academic regulations, FAQ pages). Test set: 100โ€“200 real questions collected from students (mini-survey โ€” counts as data collection methodology), each labeled with the document/section holding the answer. Questions split across pure-Malay, pure-English, and mixed to add a language dimension.

4Evaluation Metrics

MetricWhy it matters here
Hit@1 / Hit@5Was the correct source retrieved at all? The core retrieval score per experiment.
MRRRewards putting the right document at the top, not just in the top-5.
Faithfulness rubric (1โ€“5)Human-scored: does the generated answer stick to the retrieved source? Catches hallucination.
Latency & cost per queryThe engineering trade-off dimension โ€” makes Bab 5 recommendations concrete.

5Report Mapping (Bab 1โ€“5)

ChapterWhat goes in it (from this package)
Bab 1 โ€” PengenalanProblem statement, objectives, scope (one faculty's documents, 3 retrieval strategies), Gantt chart.
Bab 2 โ€” Sorotan KesusasteraanComparison tables: chatbot generations (rule-based โ†’ RAG), retrieval methods across recent papers, RAG evaluation frameworks.
Bab 3 โ€” MetodologiCorpus curation + chunking strategy, question collection survey design, system architecture (indexer โ†’ retriever โ†’ LLM โ†’ citations UI).
Bab 4 โ€” Pembangunan & PengujianThe 3 experiments, Hit@k/MRR tables, per-language breakdown, faithfulness scoring, chat UI screenshots.
Bab 5 โ€” Dapatan KajianRecommended pipeline with evidence, limitations (corpus freshness, rubric subjectivity), future work (multi-faculty scaling).

6Tech Stack

PythonFastAPIrank-bm25 sentence-transformersChroma / FAISSAny LLM API

๐Ÿ”Ž Related works โ€” Perplexity API placeholder

Live literature search (RAG evaluation and hybrid retrieval papers, 2022โ€“2026) will be generated here via the Perplexity API once the subscription is active.

โณ Generate Literature Review (coming soon)

โ† Back to all FYP ideas ยท Assignment Helper