- Create a new directory with these three files (requirements.txt, main.py, README.md)
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py
- Update
main()
to run the example prompt chains
Sequential prompt chaining in one method with context and output back-referencing.
main.py
- start here - full example usingMinimalChainable
fromchain.py
to build a sequential prompt chainchain.py
- contains zero library minimal prompt chain classchain_test.py
- tests forchain.py
, you can ignore thisrequirements.py
- python requirements