This page tells you everything you need to do before the workshop. You will run the workshop on your own laptop, so you need to install two free programs and download the workshop files.
The whole process takes about 20 minutes. Please do it before the day — installing software is the part most likely to hit a snag, and it is much easier to fix before the workshop starts.
VS Code (Visual Studio Code) is a free program for writing and running code. We use it to open and run the workshop notebooks. A notebook is a document made up of cells — blocks of text or code that you can run one at a time.
Next, add two extensions. An extension is an add-on that gives VS Code extra features.
uv is a free tool that sets up Python and all the packages the workshop needs. A package is a bundle of ready-made code that someone else has written. You do not need to install Python separately — uv downloads the right version for you.
You install uv by typing one command into a terminal — a window where you type instructions to your computer instead of clicking.
:::::::::::::::: spoiler
Terminal, and press Enter)curl -LsSf https://astral.sh/uv/install.sh | sh
::::::::::::::::::::::::
:::::::::::::::: spoiler
PowerShell, and press Enter)powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
::::::::::::::::::::::::
When it finishes, close the Terminal or PowerShell window. uv only works in windows opened after it was installed.
The folder is called embedding-llms-unstructured-data-workshop-main.
:::::::::::::::::::::::::::::::::::::::: callout
On Windows you can look inside a ZIP file without unzipping it. The workshop will not work from inside the ZIP file. Make sure you use the unzipped folder.
::::::::::::::::::::::::::::::::::::::::::::::::
uv sync
uv downloads Python and the workshop packages. This takes a minute or two. When it finishes, a new folder called .venv appears in the file list on the left. This folder holds everything the notebooks need. You do not need to open it.
notebooks folder and click 01-environment-setup.ipynb2 + 3If you see the number 5 below the cell, you are ready. You do not need to go any further in the notebook — we will do the rest together on the day.
:::::::::::::::::::::::::::::::::::::::: callout
Check these things in order:
uv is not recognised, or command not found. Close VS Code completely and open it again, then retry Step 4. If that does not work, repeat Step 2..venv when selecting a kernel. Check that you ran uv sync in Step 4 and that it finished without errors. Then close VS Code, open it again, and retry.If none of these help, bring the error message to the workshop and we will fix it together in the first 5 minutes.
::::::::::::::::::::::::::::::::::::::::::::::::
The LLM we use runs on university computers. To reach them, your laptop must be connected to the university VPN (virtual private network) — a secure connection into the university network.
Before the workshop, check that you can connect to the university VPN from your laptop. On the day, connect to it before you start.
You do not need an API key before the workshop. Your instructor will give you one on the day, and you will set it up in notebook 01.
At the start of the workshop, before any content begins, the instructor will say:
“Here’s the only things you need to know today.”
They will then live-demonstrate four things in the notebook — not to teach you Python, but to show you how a notebook behaves. This takes about 8 minutes.
1. Running a cell Click a cell, press Shift+Enter. It runs. That’s it.
2. Changing a value Change a word or a number in the cell, run it again. The output updates. The notebook does exactly what you tell it.
3. Triggering an error — on purpose The instructor will break something deliberately and read the error message aloud. The last line of the error message tells you what went wrong. They will then fix it.
This is the most important minute of the whole workshop. Errors are not failures. They are information. Every programmer sees them constantly. Reading the last line and fixing it is the whole skill.
4. Seeing inside the notebook
The instructor will show a print() statement — a way to look at the value of
any variable at any point. If you are ever unsure what your code is doing, print it.
After these four things, you know enough to follow every exercise in the workshop.