This repo contains example for all the code samples shared in Medium Article Building AI Applications with Foundational Models: Introduction to AI Engineering
- Make sure you have python
3.x
istalled. - Clone the repo.
- cd into the clone repo to be at the root of your project.
- Create the virtual environment.
python3 -m venv ai-plyground-venv
- Activate the venv.
source ai-plyground-venv/bin/activate
- Install all the dependencies.
pip install -r requirements.txt
- Add OpenAI key to your
~/.bash_profile
or~/.zshrc
file. Pick the file that represnt your active profile.export OPENAI_API_KEY="<your-key>"
- Getiing started on how to access the LLMs, prompt examples -
introduction.py
- Structured output -
structure-output.py
- Function Calling -
function-calling.py
- Agents -
ai-agents.py