Lab build

Celebrity detector and Q&A

Finds a face in an uploaded photo, identifies the person with Llama 4 vision and answers questions.

Role
Builder, end to end
Group
LLMOps and AIOps
Services
AI & LLM systems · MLOps & cloud

What it does

OpenCV's Haar cascade finds the largest face in an uploaded image and draws a box around it. The image is sent to Llama 4 Maverick through Groq's API to return a structured profile, and a second Groq call answers user questions about the identified person. CircleCI builds the Flask image, pushes it to Google Artifact Registry and rolls it out on GKE.

What was built

  1. 01

    Image handler decodes the upload, runs a frontal-face Haar cascade and marks the largest detected face.

  2. 02

    Detector sends the base64 image to llama-4-maverick-17b with a prompt for name, profession, nationality and achievements.

  3. 03

    QA engine answers free-text questions about the extracted name in a second chat completion call.

  4. 04

    CircleCI workflow runs checkout, build-and-push to Artifact Registry, then kubectl apply and rollout restart on GKE.

The pipeline, layer by layer

Five layers, one pipeline.

  1. L1Input

    • Flask upload form
  2. L2Vision

    • OpenCV Haar cascade
    • Llama 4 vision identification
  3. L3Q&A

    • Groq follow-up call
  4. L4CI/CD

    • CircleCI workflow
    • Artifact Registry
  5. L5Runtime

    • GKE deployment

Stack

  • Flask
  • OpenCV
  • NumPy
  • Groq API
  • Llama 4 Maverick
  • Docker
  • CircleCI
  • Google Artifact Registry
  • GKE
  • Kubernetes

Next lab build · 08 / 46

AI music composer

Turns a text description and mood into melody, harmony and rhythm, then synthesises it to WAV.

Previous: AI travel itinerary planner

Need a system like this in production? Tell us about it.