Assignments
1 Basics: Tokens and chat format
You have learned some basic properties of Large Language Models (tokens and the chat format):
You should be able to solve the following tasks:
- What is a token?
- Explain the helper function for the chat format.
- Explain the Python code which counts the tokens of an API call.
2 Classification
You have learned how to classify different customer queries
You should be able to solve the following task:
- Write a prompt to classify customer queries.
3 Moderation
The moderations endpoint is a tool you can use to check whether content complies with our usage policies
You should be able to solve the following tasks:
- Explain the task and output of the moderations endpoint.
- Use the moderations endpoint to determine prompt injection.
4 Chain of Thought Reasoning
Chain-of-thought (CoT) prompting enables complex reasoning capabilities through intermediate reasoning steps. You can combine it with few-shot prompting to get better results on more complex tasks that require reasoning before responding
You should be able to solve the following task:
- Implement a chain-of-thought prompt using an inner monologue.
5 Prompt Chaining
Prompt Chaining is a technique of connecting multiple tasks to generate complex content by breaking down a large generative task into smaller, more manageable pieces. Examples of prompt chaining are generating product descriptions, creating personalized email campaigns, and generating complex chatbot responses.
You should be able to solve the following tasks:
- Explain the concept of prompt chaining.
6 Check Model Output
You have learned how to ask the model to verify its own outputs.
You should be able to solve the following tasks:
- Write a prompt to check if an output is factually based on the provided information.
- Use questions and answer pairs to check if the response used the retrieved information correctly.
7 Build an End-to-End System
This puts together the chain of prompts that you saw throughout the tutorials.
You should be able to solve the following tasks:
- Explain the typical steps in a system of chained prompts for processing a user query.
8 Evaluation
Evaluate LLM responses when there is a single “right answer”.
You should be able to solve the following tasks:
- Explain how you could evaluate LLM responses when there is a single “right answer”.
9 Evaluation Part 2
Evaluate LLM responses where there isn’t a single “right answer.”
You should be able to solve the following tasks:
Explain how you could evaluate LLM responses when there is no single “right answer”.
Create a meaningful rubric to evaluate the LLM’s answer to a user.
What is an “eval” in the context of LLMs?