QA &
Conversational
Systems
A Practical Course Guide
A 6-week hands-on practical spanning the full QA and dialogue stack — from Transformer-based extractive models and RAG pipelines through evaluation, task-oriented dialogue systems, and multi-agent architectures. Built around a continuous project with benchmarked deliverables each week.
Not offered in 2026–2027 · Course catalogue entry (Ocasys)
Skills &
Prior Knowledge
Students enter this practical having completed the NLP or LLM course. A working knowledge of transformer models, Python, and PyTorch is assumed. The bars below show the recommended entry-level proficiency — the practical builds directly on top of these foundations rather than re-teaching them.
Core Learning
Outcomes
6-Week
Course Plan
- Transformer architecture: self-attention, encoder/decoder variants
- Tokenisation and transfer learning paradigms
- Modern QA and dialogue systems — the broader landscape
- Set up environment: Python, PyTorch, HuggingFace Transformers
- Run a pretrained QA model (
deepset/bert-base-uncased-squad2,distilbert-base-uncased-distilled-squad) on SQuAD - Report EM/F1 and describe the preprocessing pipeline
Deliverable: Environment setup + EM/F1 report on SQuAD baseline.
- Formalising extractive vs. generative QA
- Dataset structure: SQuAD, TriviaQA, NaturalQuestions
- Evaluation metrics: Exact Match (EM) and token-level F1
- Implement baseline extractive QA model using
AutoModelForQuestionAnswering - Compare against a generative QA model (e.g., T5)
- Submit report comparing EM/F1 and qualitative error analysis
Deliverable: Extractive vs. generative QA comparison report.
- Retrieval-augmented generation: grounding answers in external corpora
- Dense retrieval: bi-encoders, dot-product similarity
- Retriever + generator pipeline architecture
- Implement dense retrieval using FAISS and encode contexts with SentenceTransformers
- Evaluate top-k retrieval accuracy and context recall
Deliverable: RAG pipeline with top-k accuracy and recall results.
- Lexical metrics: EM/F1 — strengths and limitations
- Semantic metrics: BERTScore and embedding similarity
- RAG-specific evaluation: faithfulness, answer relevance, context precision
- Instrument RAG pipeline with RAGAS for automatic evaluation
- Analyse incorrect predictions — classify error types: retrieval vs. generation
- Prepare 1-page evaluation summary
Deliverable: 1-page evaluation summary with error classification table.
- Task-oriented dialogue pipeline: NLU → DST → Policy → NLG
- End-to-end neural dialogue systems
- Slot-filling and belief state tracking
- Evaluation: slot accuracy, task success rate, BLEU
- Implement a basic task-oriented dialogue system using Rasa or ConvLab-3
- Evaluate slot-filling accuracy and task success rate
- Document system architecture and training procedure
Deliverable: Dialogue system implementation + architecture documentation.
- Planner / solver / critic agent frameworks
- Coordination and communication in multi-agent LLMs
- Loop-guarding: preventing infinite agent loops
- Cost and compute tracking across agent calls
- Extend system with a two-agent design: planner and solver
- Implement loop-guarding and cost tracking
- Evaluate accuracy and compute efficiency vs. single-agent baseline
Deliverable: Multi-agent system + comparison report vs. single-agent baseline.
Cumulative Project
Timeline
Each week builds directly on the last. Your project is a single, continuously developed system — not six isolated assignments. Below is the progression of deliverables from baseline to multi-agent architecture.
AutoModelForQuestionAnswering) and generative (T5) QA models on the same dataset. Submit a report with EM/F1 tables and qualitative error analysis.Responsible AI &
System Design
Building QA and conversational systems involves choices that carry real consequences — for what information users receive, what answers are treated as authoritative, and who benefits or is harmed by system failures. This course weaves ethical considerations directly into each week's evaluation and design work.