Instructor

1 min read ai, llm, python

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/instructor-playground.

learn Instructor

Structured extraction in Python, powered by llms, designed for simplicity, transparency, and control.

see main.ipynb

demo

# set local version of python for *this* shell
pyenv local 3.12

# create virtual environment with local version of python
python -m venv .venv

# activate environment
source ./.venv/bin/activate

# upgrade pip
pip install --upgrade pip

# install requirements
pip install -r requirements.txt

# freeze requirements
pip freeze > requirements.txt

# open main.ipynb in vscode
code main.ipynb

# OR open main.ipynb in `juypter lab`
juypter lab

# open http://localhost:8888/lab in browser

resources

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.