AI Hero

AI Hero's open-source examples and course material. Learn AI Engineering with a single repo.
GitHub
293
Created a month ago, last commit 2 hours ago
2 contributors
103 commits
40 added yesterday
README

AI Hero

From Zero to AI Hero

Welcome!

AI Hero is the course I'm building to take you from zero to fully-fledged AI engineer.

It's going to be the perfect course for anyone looking to transition from frontend, backend, or full-stack development to working with AI.

I'm open sourcing most of the code for the course, including:

  • Examples
  • Exercises
  • Libraries & SDKs (like Evalite, my evals framework)
  • Articles

Following repo notifications can be pretty painful, so get on my newsletter to stay up to date.

Examples

The bit I'm currently working on is the examples directory.

Each example is a self-contained, runnable code sample that demonstrates a concept or technique.

Anything marked with TODO is, well, you get it.

Quickstart

Let's get you running your first example.

1. Install node

You'll need Node.js installed to run the exercises and examples. LTS (Long Term Support) is recommended.

2. Install PNPM

Install pnpm using Corepack.

3. Install Dependencies

# Installs all dependencies
pnpm install

# Runs an example in the given directory
pnpm run exercise v 01

4. Add A .env File

Create a .env file in the root of the project with the following content:

# Your OpenAI API key
OPENAI_API_KEY=your-api-key

# OR your Anthropic API key
ANTHROPIC_API_KEY=your-api-key

I'll be adding a guide on running the examples with local models soon.

5. Run An Example

Runs the first example of examples/vercel-ai-sdk. Each example links to a corresponding article on AI Hero.

pnpm run example v 01