HarryPotter HomeworkAssignment-2
HarryPotter HomeworkAssignment-2
Assignment 2 - Goals
1. Learn how to design a custom classification for your Harry Potter chatbot
2. Learn how to teach your custom classification to your Harry Potter chatbot
Assignment 2 – Instructions:
1. Only submit one PDF document. If editing in Word, you can export your assignment into a PDF file by clicking on: File -> Save
As -> File Format: “PDF”
2. Respond only within the red tags: <Start Student Response> response <End Student Response>. Do not delete the red tags.
3. Copy and paste your CSV table when answering question 2-2. Do not upload a separate CSV file when submitting this
homework assignment.
4. To answer question 2-3, please paste your chat log. (Remember where you save this chat log, as it will be helpful during the
Final Project)
2-1 Classification Table provided by Institute: Here is an example of one such classification table as provided by the AI Institute.
Name of
Spell First Introduced by Subsequent Users How was Spell Used
Lumos Albus Dumbledore Harry Potter To create light
Expelliarm To disarm
us Severus Snape Harry Potter opponents
Avada
Kedavra Voldemort Death Eaters To kill opponents
Alohomora Hermione Granger Harry Potter To unlock doors
Accio Barty Crouch Jr. Harry Potter To summon objects
2-2 Classification Table provided by Students: Please design your own classification table and paste the table below. (Do not submit
an extra .csv file when submitting this assignment.) See file HarryPotterSpell_Assignment_2_Classification.csv as a template for
designing your own classification.
2-3 Quality of Prompt with Classification Table: Please upload your custom classification CSV file into your chatbot. Then, design 3
to 5 prompts to test your custom classification.
For your convenience, we have listed few prompts which are based upon the classification table provided by AI Institute:
1. Can you list a couple of spells from the book “The Sorcerer’s stone”?
After testing your custom classification with your sample prompts, please save a copy your chat log to your computer and then paste
the conversation below:
2-4 LLM Comparison (Optional): Try out the prompts you created in question 2-3 with a different language model (like
Mistral), and compare its performance to the GPT4 model in terms of cost and token size. Report your findings.
2-5 Customized System Prompt (Optional): Can you customize System Prompt to match your user persona identified earlier.