Tutorials / Prompting Meta AI and Llama Models / Final project: build a study buddy assistant

Final project: build a study buddy assistant

14 min read text
Course contents (20 lessons)
  1. Getting to know Meta AI and Llama
  2. What Meta AI is and where you can use it
  3. Meta AI versus Llama: the assistant and the models
  4. Your first chat with Meta AI
  5. Prompt basics that work
  6. The anatomy of a good prompt
  7. Context, tone, length and follow-ups
  8. Everyday uses
  9. Writing and replying to messages
  10. Captions, posts and bios
  11. Planning and study help
  12. Customer replies for a small business
  13. Images, groups and privacy
  14. Writing image generation prompts
  15. Group chats, etiquette and privacy
  16. Working with Llama models directly
  17. Running a Llama model on your own computer
  18. System prompts and chat templates
  19. Parameters: temperature, top_p and max tokens
  20. Few-shot examples and structured JSON output
  21. Advanced prompting
  22. Prompting Llama for code
  23. Retrieval-augmented prompting: answering from your own documents
  24. Evaluating and comparing answers
  25. Safety, limits and a final project
  26. Safety, limits and responsible use
  27. 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:

CheckPass condition
Stays inside notesSays "not in your notes" for 2 off-topic questions
One question at a timeNever sends two questions
Hints before answersDoes not reveal the answer on the first miss
Correct feedbackMatches your notes on every checked answer
Valid JSONParses 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