← cd ..

$ cat ./quiz-generator-with-llama/README.md

// paste any text, pick a difficulty — llama 4 via groq generates 5 mcqs as structured json, rendered as an interactive quiz with auto-scoring

// stack: groq · llama 4 scout 17b · streamlit · python

// pipeline

user pastes text + picks difficulty (easy / medium / hard)
        ↓
structured prompt with json schema sent to llama 4 via groq
        ↓
llama 4 returns 5 mcqs as json (temperature=0.3)
        ↓
strip code fences → json.loads → list of question dicts
        ↓
5 radio groups rendered in streamlit
        ↓
submit → compare answers → show score
        ↓
@st.cache_data — same input? no api call