recall&build
AI ENGINEERING / 01Sign in to sync

LAB 02 / RETRIEVAL

Find it. Then rank it.

Explain why a relevant result was retrieved or missed, using a labeled benchmark.

Starter project

STEP 01

A clean place to experiment.

Download and unzip the starter on your laptop. Open a terminal inside 02-retrieval-lab. You need Python 3.12 or newer. The core exercise needs no API key.

TERMINAL
python3 --version
python3 -m venv .venv
source .venv/bin/activate
python -m unittest -v test_exercise
Using Windows PowerShell?
TERMINAL
py -3.12 -m venv .venv
.venv\Scripts\Activate.ps1
python -m unittest -v test_exercise
The first test run should fail.

The starter functions raise NotImplementedError. That is your starting point. Read the contracts in exercise.py and the assertions in test_exercise.py.

Done when you can run the tests and explain the first unfinished function.

YOUR PROJECT NOTES

Keep what you learned.

Only you can see these notes.

Signed-in profiles and learning activity are visible to the app owner. Project notes stay private. Your profile & data