Study Buddy AI quiz generator
Generates multiple-choice and fill-in-the-blank quizzes on any topic, shipped through Jenkins and ArgoCD.
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
- 01
PydanticOutputParser schemas for MCQ and fill-in-the-blank questions, retried up to a configured limit on parse failure.
- 02
Validation rejects MCQs without exactly four options or a matching answer, and blanks without '___'.
- 03
Quiz manager scores submitted answers and exports timestamped results to CSV.
- 04
Jenkins tags images v<build number>, pushes to Docker Hub and commits the new tag into manifests/deployment.yaml.
- 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.
L1UI
- Streamlit quiz app
L2Generation
- Groq Llama 3.1
- Prompt templates
- Pydantic parse and retry
L3CI
- GitHub webhook
- Jenkins build
- Docker Hub image
L4GitOps
- Manifest tag commit
- ArgoCD sync
L5Runtime
- Minikube deployment