Lab build

Study Buddy AI quiz generator

Generates multiple-choice and fill-in-the-blank quizzes on any topic, shipped through Jenkins and ArgoCD.

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

What it does

Users choose a topic, question type, difficulty and number of questions in Streamlit; Groq's llama-3.1-8b-instant writes each question and Pydantic parsers validate its structure with retries. Answers are scored in the app and results can be saved to CSV. Jenkins builds a versioned image, pushes it to Docker Hub, commits the new tag into the Kubernetes manifest and triggers an ArgoCD sync on Minikube, with a GitHub webhook starting the run.

What was built

  1. 01

    PydanticOutputParser schemas for MCQ and fill-in-the-blank questions, retried up to a configured limit on parse failure.

  2. 02

    Validation rejects MCQs without exactly four options or a matching answer, and blanks without '___'.

  3. 03

    Quiz manager scores submitted answers and exports timestamped results to CSV.

  4. 04

    Jenkins tags images v<build number>, pushes to Docker Hub and commits the new tag into manifests/deployment.yaml.

  5. 05

    Final stage logs in to ArgoCD and syncs the app, which runs two replicas on Minikube.

The pipeline, layer by layer

Five layers, one pipeline.

  1. L1UI

    • Streamlit quiz app
  2. L2Generation

    • Groq Llama 3.1
    • Prompt templates
    • Pydantic parse and retry
  3. L3CI

    • GitHub webhook
    • Jenkins build
    • Docker Hub image
  4. L4GitOps

    • Manifest tag commit
    • ArgoCD sync
  5. L5Runtime

    • Minikube deployment

Stack

  • LangChain
  • Groq
  • Llama 3.1
  • Pydantic
  • Streamlit
  • pandas
  • Docker
  • Docker Hub
  • Jenkins
  • ArgoCD
  • Kubernetes
  • Minikube

Next lab build · 05 / 46

AI anime recommender

Recommends three anime per query by retrieving synopses from ChromaDB and prompting a Groq Llama model.

Previous: Flipkart product assistant

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