Language Technology Practical · BSc AI

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.

6 Weeks Python · PyTorch · HuggingFace BSc AI · UGroningen Project-Based WBAI027-05 · 5 ECTS

Not offered in 2026–2027 · Course catalogue entry (Ocasys)

6
Weeks
6
Core Objectives
RAG
Capstone Method
QA
Primary Domain

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.

Python & PyTorchAdvanced
Transformer ArchitectureIntermediate
HuggingFace TransformersIntermediate
NLP Evaluation MetricsBasic
Git & ReproducibilityIntermediate
Academic Writing / ReportingBasic
Recommended entry level versus expected exit level (out of 100): Python / PyTorch 88 → 92; Transformers 72 → 88; HuggingFace 68 → 90; Evaluation metrics 55 → 88; Git / Reproducibility 65 → 82; Technical writing 50 → 80.

Core Learning
Outcomes

Build & Evaluate QA Systems
Implement extractive and generative QA models, benchmark them on SQuAD using EM/F1, and perform rigorous qualitative error analysis.
Design RAG Pipelines
Build retriever + generator pipelines using FAISS and SentenceTransformers, evaluate retrieval quality, and ground answers in external corpora.
Implement Dialogue Systems
Develop task-oriented dialogue systems covering NLU, DST, policy, and NLG components; evaluate slot-filling accuracy and task success rates.
Apply Multi-Agent Architectures
Extend single-agent systems to planner/solver/critic multi-agent designs with loop-guarding, cost tracking, and systematic comparative evaluation.
Master NLP Evaluation
Move beyond lexical metrics (EM/F1) to semantic evaluation using BERTScore, RAGAS faithfulness scores, and structured error classification frameworks.
Communicate Technical Work
Write clear technical reports documenting system architecture, experimental results, error analysis, and design decisions — building core research communication skills.

6-Week
Course Plan

Click any week to expand ↓
Topic Summary
  • Transformer architecture: self-attention, encoder/decoder variants
  • Tokenisation and transfer learning paradigms
  • Modern QA and dialogue systems — the broader landscape
Lab & Project Tasks
  • 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
Key Concepts
Self-attention · Positional encoding · Encoder-only vs. encoder–decoder · Tokenisation · Transfer learning

Deliverable: Environment setup + EM/F1 report on SQuAD baseline.
Topic Summary
  • Formalising extractive vs. generative QA
  • Dataset structure: SQuAD, TriviaQA, NaturalQuestions
  • Evaluation metrics: Exact Match (EM) and token-level F1
Lab & Project Tasks
  • 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
Key Concepts
Span prediction · Seq2Seq generation · SQuAD 1.1/2.0 · EM/F1 computation · Qualitative error taxonomy

Deliverable: Extractive vs. generative QA comparison report.
Topic Summary
  • Retrieval-augmented generation: grounding answers in external corpora
  • Dense retrieval: bi-encoders, dot-product similarity
  • Retriever + generator pipeline architecture
Lab & Project Tasks
  • Implement dense retrieval using FAISS and encode contexts with SentenceTransformers
  • Evaluate top-k retrieval accuracy and context recall
Key Concepts
Bi-encoders · FAISS indexing · Top-k retrieval · Context recall · Chunking strategies

Deliverable: RAG pipeline with top-k accuracy and recall results.
Topic Summary
  • Lexical metrics: EM/F1 — strengths and limitations
  • Semantic metrics: BERTScore and embedding similarity
  • RAG-specific evaluation: faithfulness, answer relevance, context precision
Lab & Project Tasks
  • Instrument RAG pipeline with RAGAS for automatic evaluation
  • Analyse incorrect predictions — classify error types: retrieval vs. generation
  • Prepare 1-page evaluation summary
Key Concepts
BERTScore · RAGAS faithfulness · Answer relevance · Context precision/recall · Error taxonomy

Deliverable: 1-page evaluation summary with error classification table.
Topic Summary
  • 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
Lab & Project Tasks
  • 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
Key Concepts
NLU · Dialogue State Tracking · Policy optimisation · NLG · Slot-filling · End-to-end models

Deliverable: Dialogue system implementation + architecture documentation.
Topic Summary
  • 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
Lab & Project Tasks
  • 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
Key Concepts
Multi-agent orchestration · Planner/solver patterns · Termination conditions · API cost tracking · Comparative evaluation

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.

W01
Environment & Baseline QA
Set up the full project environment. Run a pretrained, SQuAD-fine-tuned QA model on SQuAD and report EM/F1. Describe the preprocessing pipeline clearly.
EnvironmentEM/F1 Baseline
W02
Extractive vs. Generative QA Comparison
Implement and compare extractive (AutoModelForQuestionAnswering) and generative (T5) QA models on the same dataset. Submit a report with EM/F1 tables and qualitative error analysis.
Model ComparisonError Analysis
W03
RAG Pipeline Implementation
Add a dense retrieval layer to your QA system using FAISS and SentenceTransformers. Evaluate top-k retrieval accuracy and context recall on your corpus.
RAG PipelineTop-k Recall
W04
Comprehensive Evaluation Report
Instrument your RAG pipeline with RAGAS. Classify prediction errors by type (retrieval failure vs. generation failure). Submit a 1-page evaluation summary.
RAGAS · BERTScore1-page Report
W05
Dialogue System Architecture
Implement a task-oriented dialogue system (Rasa or ConvLab-3). Evaluate slot-filling accuracy and task success. Document the system architecture and training procedure.
Dialogue SystemSlot Accuracy
W06
Multi-Agent Extension & Final Comparison
Extend your system with a planner/solver two-agent design. Add loop-guarding and cost tracking. Report accuracy and compute efficiency relative to your Week 5 single-agent baseline.
Multi-AgentFinal Report

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.

Hallucination & Factual Grounding
QA and RAG systems can generate fluent but factually incorrect answers with high confidence. We study RAG as a grounding mechanism, evaluate faithfulness explicitly with RAGAS, and build error classification practices that distinguish retrieval failures from generation failures.
Bias in Retrieved & Generated Content
Retrieval systems reflect the biases of their source corpora. Models inherit training data biases that can surface in answers to sensitive questions. Students are expected to include bias analysis in their error classification reports and flag systematic demographic or topical gaps.
Privacy in Dialogue Systems
Conversational systems often handle sensitive user inputs. We discuss what data should be logged vs. discarded, how dialogue state tracking can expose personal information, and the responsibilities of developers building systems that interact with real users.
Safety in Multi-Agent Systems
Multi-agent architectures introduce new failure modes: runaway loops, compounding errors, uncontrolled API costs, and emergent behaviour that no single agent was designed to produce. Loop-guarding and cost tracking are not just engineering concerns — they are responsible deployment requirements.
Responsible System Design Principles
Factual Accuracy
Ground answers in verifiable sources; evaluate faithfulness explicitly
Transparency
Document system architecture, data sources, and known limitations
Privacy
Minimise logging of user inputs; handle dialogue data responsibly
Safety & Control
Implement termination conditions and cost limits in agentic systems
Fairness
Identify and report systematic gaps in system performance across topics