Deploy

The AI Engineer Path – Scrimba

Web

The AI Engineer Path – Scrimba #

https://www.coursera.org/specializations/ai-engineering#courses

Intro to AI Engineering (104 min) #

  • Welcome to The AI Engineer Path!
  • AI Engineering basics
  • The code so far
  • Polygon API sign-up & key
  • Get an OpenAI API Key
  • Overview of how the API works
  • An API call: OpenAI dependency
  • An API call: Instance and model
  • An API call: The messages array
  • A quick word about models
  • Prompt Engineering and a challenge
  • Adding AI to the App
  • Tokens
  • The OpenAI Playground
  • Temperature
  • The “Few Shot” Approach
  • Adding Examples
  • Stop Sequence
  • Frequency and Presence Penalties
  • Fine-tuning
  • Creating Images with the DALL·E 3 API
  • Intro to AI Safety
  • Safety Best Practices
  • Solo Project - PollyGlot
  • You made it!

Deployment (50 min) #

  • Learn secure & robust deployment strategies
  • Create a Cloudflare worker
  • Connect your worker to OpenAI
  • Update client side data fetching
  • Handle CORS and preflight requests
  • OpenAI API requests & responses
  • Create an AI Gateway
  • Error handling
  • Create & deploy the Polygon API worker
  • Fetch the stock data
  • Download files and push to GitHub
  • Deploy your site with Cloudflare Pages
  • Custom domains with Cloudflare
  • Recap & next steps

Open-source Models (33 min) #

  • Open source vs closed source
  • Intro To HuggingFace.js Inference
  • Text To Speech With HuggingFace.js Inference
  • Transforming Images with HuggingFace.js Inference
  • AI Models In The Browser With Transformers.js
  • Download and Run AI Models on Your Computer with Ollama
  • Section Recap

Embeddings and Vector Databases (94 min) #

  • Your next big step in AI engineering
  • What are embeddings?
  • Set up environment variables
  • Create an embedding
  • Challenge: Pair text with embedding
  • Vector databases
  • Set up your vector database
  • Store vector embeddings
  • Semantic search
  • Query embeddings using similarity search
  • Create a conversational response using OpenAI
  • Chunking text from documents
  • Challenge: Split text, get vectors, insert into Supabase
  • Error handling
  • Query database and manage multiple matches
  • AI chatbot proof of concept
  • Retrieval-augmented generation (RAG)
  • Solo Project: PopChoice

Agents (117 min) #

  • AI Agent Intro
  • Prompt Engineering 101
  • Control Response Formats
  • Zooming Out
  • Agent Setup
  • Introduction to ReAct prompting
  • Build action functions
  • Write ReAct prompt - part 1 - planning
  • ReAct Agent - part 2 - ReAct prompt
  • ReAct Agent - part 3 - how does the “loop” work?
  • ReAct Agent - part 4 - code setup
  • ReAct Agent - part 5 - Plan for parsing the response
  • ReAct Agent - part 6 - Parsing the Action
  • ReAct Agent - part 7 - Calling the function
  • ReAct Agent - part 8 - Housekeeping
  • ReAct Agent - part 9 - Finally! The loop!
  • OpenAI Functions Agent - part 1 - Intro
  • OpenAI Functions Agent - part 2 - Demo day
  • OpenAI Functions Agent - part 3 - Tools
  • OpenAI Functions Agent - Part 4 - Loop Logic
  • OpenAI Functions Agent - Part 5 - Setup Challenge
  • OpenAI Functions Agent - Part 6 - Tool Calls
  • OpenAI Functions Agent - Part 7 - Pushing to messages
  • OpenAI Functions Agent - Part 8 - Adding arguments
  • OpenAI Functions Agent - Part 9 - Automatic function calls
  • Adding UI to agent - proof of concept
  • Solo Project - AI Travel Agent
  • Nice work!

Multimodality (62 min) #

  • Introduction
  • Generate original images from a text prompt
  • Response formats
  • Prompting for image generation
  • Size, quality and style
  • Editing images
  • Image generation challenge
  • Image generation challenge solution
  • GPT-4 with Vision - Part 1
  • GPT-4 with Vision - Part 2
  • Image generation & Vision recap

OpenAI’s Assistants API (30 min) #

  • Introducing the Assistants API
  • How OpenAI Assistants work
  • Create an Assistant
  • Create a thread and messages
  • Running an Assistant
  • Bring it all together
  • More to explore

Hugo Setup and Deploy

Web

🚀 Hugo + GitHub Pages Setup (User Site) #

Minimal setup using hugo-book theme inside a Conda environment, with GitHub Pages deployment.


1. Create and Activate Conda Environment #

conda create -n hugo-env
conda activate hugo-env

2. Install Hugo & Create Hugo Site with hugo-book Theme #

# Install Hugo
sudo apt install hugo         # Or: brew install hugo

# Create Hugo site
hugo new site hugo-site
cd hugo-site

# Initialize git and add theme
git init
git submodule add https://github.com/alex-shpak/hugo-book themes/hugo-book

3. Configure config.toml #

baseURL = 'https://your-username.github.io/'
languageCode = 'en-us'
title = 'My Hugo Site'
theme = 'hugo-book'

[params]
  BookTheme = 'light'
  BookToC = true
  BookCollapseSection = true
  BookFlatSection = false

[[menu.sidebar]]
  name = "Knowledge Graph"
  url = "/kg/"
  weight = 1

4. Create Content and _index.md Files #

# Create directories and content
mkdir -p content/kg/topic1
touch content/_index.md
touch content/kg/_index.md
touch content/kg/topic1/_index.md
hugo new kg/topic1/intro.md

Directory Structure #

content/
├── _index.md
├── kg/
│   ├── _index.md
│   └── topic1/
│       ├── _index.md
│       └── intro.md

_index.md contents #

content/_index.md

...

Hugo Source Backup

Web

🔒 Hugo Source Backup #

This guide outlines how to back up your Hugo source files (excluding the public/ folder) to a private GitHub repository.


📁 Folder Structure #

Typical Hugo project structure:

hugo-site/
├── archetypes/
├── content/
├── layouts/
├── static/
├── themes/
├── config.toml
├── public/           # <- This is ignored for source backup
└── backup.sh         # Backup script

✅ 1. Create a Private GitHub Repo #

  • Go to https://github.com/new
  • Name it something like hugo-source
  • Set visibility to Private
  • Don’t initialize with README or license

✅ 2. Initialize Git in Your Hugo Site (if not already) #

git init
git remote add origin https://github.com/<your-username>/hugo-source.git
echo "public/" >> .gitignore

✅ 3. Create the Backup Script #

Create a file named backup.sh in the root of your Hugo project:

...