Final project: build a study buddy assistant
Course contents (20 lessons)
- Getting to know Meta AI and Llama
- What Meta AI is and where you can use it
- Meta AI versus Llama: the assistant and the models
- Your first chat with Meta AI
- Prompt basics that work
- The anatomy of a good prompt
- Context, tone, length and follow-ups
- Everyday uses
- Writing and replying to messages
- Captions, posts and bios
- Planning and study help
- Customer replies for a small business
- Images, groups and privacy
- Writing image generation prompts
- Group chats, etiquette and privacy
- Working with Llama models directly
- Running a Llama model on your own computer
- System prompts and chat templates
- Parameters: temperature, top_p and max tokens
- Few-shot examples and structured JSON output
- Advanced prompting
- Prompting Llama for code
- Retrieval-augmented prompting: answering from your own documents
- Evaluating and comparing answers
- Safety, limits and a final project
- Safety, limits and responsible use
- Final project: build a study buddy assistant
The project
You will build a study buddy for one subject that you choose. It will explain topics in simple words, quiz you from your own notes, and produce a review report in JSON. You can build it in Meta AI by pasting the prompts into one chat, or with a local Llama model by using a system prompt. Both work.
The project uses almost everything from the course: clear prompts, a system prompt, notes as context, few-shot examples, structured output, parameters and evaluation. Take your time. A small working result is better than a big unfinished one.
Step 1: pick the subject and gather notes
Choose a subject with 2 to 3 pages of your own notes, such as biology chapter 4. Remove private information. Notes should be short enough to paste in one message.
Step 2: write the system prompt
You are a study buddy for a student preparing for a school exam.
Use only the NOTES that the student pastes. If something is not in the notes, say "This is not in your notes" and suggest what to look up.
Explain in simple English, short sentences, one example per idea.
When quizzing, ask one question at a time and wait for the answer.
Never give the answer before the student tries. Offer a hint first.
In Meta AI, paste this as your first message with "Follow these rules for this whole chat." In a local setup, put it in the system field or a Modelfile. Use a low temperature, about 0.3, in a local tool.
Step 3: add the notes
NOTES:
[paste your notes here]
Reply only with: "Notes received." and list the 5 main topics you found, one line each.
This step is a check. If the topics are wrong, your notes were unclear or the paste was cut off.
Step 4: explain and quiz
Explain topic 2 in 6 sentences. Then start a quiz of 5 questions on it. First question now.
Answer the questions honestly, and sometimes wrongly on purpose. Does the buddy correct you using your notes?
Step 5: add few-shot style for feedback
When I answer, give feedback in this format:
Student: "Photosynthesis makes oxygen from sugar."
Feedback: Close, but reversed. Photosynthesis makes sugar and releases oxygen. Hint: think about what plants take in from the air.
Student: "Plants take in carbon dioxide."
Feedback: Correct. Add one detail: they take it in through small openings called stomata.
The examples teach the format of feedback: verdict, correction, hint. Change the examples to match your subject.
Step 6: the review report in JSON
Based on this session, reply with JSON only using these keys:
"topic" (string), "questions_asked" (number), "correct" (number), "weak_points" (array of short strings), "next_step" (string).
If you use a local model, set temperature to 0.1 for this step, and check the JSON with any online or offline JSON checker. Counts may be wrong, so compare them with what you remember of the session.
Step 7: evaluate your buddy
Create a small sheet with these checks, each yes or no, over 10 test interactions:
| Check | Pass condition |
|---|---|
| Stays inside notes | Says "not in your notes" for 2 off-topic questions |
| One question at a time | Never sends two questions |
| Hints before answers | Does not reveal the answer on the first miss |
| Correct feedback | Matches your notes on every checked answer |
| Valid JSON | Parses in 5 of 5 tries |
Step 8: improve
Pick the weakest check. Change one thing, either a rule, an example or a setting. Run the same ten tests again. Keep the version with the higher score. Repeat once.
Common mistakes in this project
Pasting too many notes at once, so the later parts are ignored. Giving no off-topic test, so you never learn if it makes things up. And changing three things between runs, so you do not know what helped.
Where to go next
Try the same buddy on a different subject. Move from pasting notes to a simple local search, as in the retrieval lesson. Then explore the official Llama and Meta documentation for the newest models and features, since this field changes fast. The habits you practised here, being specific, testing, checking facts and protecting private data, will stay useful whatever the tools become.
Try it yourself
Complete all eight steps with a real subject. Write a short summary: your starting score, your final score, and the one change that helped most. If you can, share the buddy with a friend and ask them to try to break it. Their attempts will show you problems you did not think of.
This course is free to read. Create a free account to enrol, save your progress and pick up where you left off.
Sign up free I already have an account