Instructor

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