This repo contains the exercises for Anthony Shaw's PyCon US Tutorial AI Crash Course for Python Devs
You will need Jupyter to run these exercises. I recommend installing the Jupyter Extension in VS Code if you don't already have a Jupyter environment
After that, you'll need to create a virtual environment and install the packages in requirements.txt
:
$ pip install -r requirements.txt
These are the three primary lessons we will be working through:
- Lesson 1: LLMs, tokenizers, and prompts
- Lesson 2: Embedding models
- Lesson 3: Function, tools, and agents
This repo contains multiple references to a made-up game. If you want to customize that game with your own, you'll need to:
- Modify
utils/game.py
and change RULES - Modify
utils/game.py
and updatedetermine_winner_programmatically()
with your new logic - Run
make_training_data_csv()
inutils/game.py
to make a newutils/game_training.csv
file
Note this isn't required, but you want to do this yourself later on.