Sapienza University of Rome · PhD Soft Skills 2026
Artificial Intelligence,
from the Inside
A six-hour course for doctoral students of every discipline —
including those who have never written a line of code, and do not intend to start.
Students describe what they want; the machine writes the program. The course is about
knowing what to ask for, and knowing when the answer is wrong.
6 hours
176 slides
8 Colab notebooks
0 lines of code written by students
no API key · no installation · free tier
// What this is
Most introductions to AI either assume a mathematics degree or reduce to a tour of
products. This one does neither. The morning builds the mental model you need to use
these systems well and to recognise when they are failing; the afternoon builds four
layers on top of it — chatbot, prompting, grounding, agent — until each student holds
a small working research tool.
The examples lean towards text, archives, interviews and historical sources, because
the audience is mixed and humanities-heavy. Roughly a fifth of the time is spent on where
these systems break: hallucination as a mechanical consequence rather than a bug,
shortcut learning, confidence that survives being wrong, and the citations that do not
exist.
Everything runs on Google Colab's free tier. There is nothing to install, nothing to
pay for, and no API key. No PyTorch appears anywhere — the exercises
use scikit-learn and plain Python, and the code is written by Colab's built-in AI from
prompts the students supply.
// Notebooks
Each notebook gives the student a prompt, an empty cell, and Colab's AI
to fill it. Every section also ships with working reference code, so anyone who would
rather watch than type loses nothing. The teaching corpus is embedded directly in each
notebook — there is nothing to download.
Click Copy to Drive as soon as a notebook opens. These open
read-only from GitHub: they run perfectly, but nothing you do is saved until you copy them.
-
0
Warm-up 2 min
Prove Colab works, and generate your first cell from a prompt.
Open in Colab ↗
-
1
Teach a machine to sort your texts 30 min
Train a real classifier, compare it to a do-nothing baseline, read its mistakes — then train it on shuffled labels and watch it memorise nonsense.
Open in Colab ↗
-
2
Images, and how to fool them 5 min · demo
A digit classifier at 97%. Add faint noise: accuracy collapses, confidence does not.
Open in Colab ↗
-
3
Look inside the language model 20 min
Real tokenisation and the language tax on Italian and Greek. A working next-word predictor with a temperature dial. Then a hallucination produced on purpose, and checked.
Open in Colab ↗
-
4
Build a chatbot with a method 20 min
Build the transcript machinery, watch the token count grow, write a system prompt for your own field — then try to break your own rules.
Open in Colab ↗
-
5
The prompt tournament 20 min
One task, four prompts of increasing quality, scored automatically against twenty gold answers. Where prompting stops being an opinion.
Open in Colab ↗
-
6
Question your own documents 25 min
Extract, chunk, search by meaning, answer with citations you can check — on the provided archive or on your own PDFs.
Open in Colab ↗
-
7
Build your research agent 40 min · capstone
Four tools, a supervised loop, and a table at the end you can actually use. The tools are real code doing real work; the student stands where the network call would be.
Open in Colab ↗
On the corpus. The exercises use 264 short letters in the style of a
17th-century Italian correspondence archive. It is constructed, not historical,
and the notebooks say so: about one label in eight is deliberately wrong, dates appear in five
inconsistent formats, and some letters are in Italian. That is what makes "read the errors"
a real exercise rather than a formality.