Skip to content

Medium article code example - "Building AI Applications with Foundational Models: Introduction to AI Engineering"

Notifications You must be signed in to change notification settings

jaimodha/ai-playground-openai

Repository files navigation

AI-Playground-OpenAI

This repo contains example for all the code samples shared in Medium Article Building AI Applications with Foundational Models: Introduction to AI Engineering

Getting Started

  • 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>"

Example Index

  1. Getiing started on how to access the LLMs, prompt examples - introduction.py
  2. Structured output - structure-output.py
  3. Function Calling - function-calling.py
  4. Agents - ai-agents.py

About

Medium article code example - "Building AI Applications with Foundational Models: Introduction to AI Engineering"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages