LLM & Prompting Quiz

10:00

Tokens, prompts and RAG. · 10 questions

Question 1 of 10
LLMs generate text by predicting…
Question 2 of 10
RAG stands for…
Question 3 of 10
Lower temperature makes output…
Question 4 of 10
Embeddings are…
Question 5 of 10
An assistant confidently states a refund policy that does not exist. This is called…
Question 6 of 10
What is the system message for?
messages = [
    {'role': 'system', 'content': 'You are a concise support agent for a bakery.'},
    {'role': 'user', 'content': 'Do you deliver on Sundays?'},
]
Question 7 of 10
In a RAG pipeline, why is a long document split into chunks before embedding?
Question 8 of 10
Which prompting technique does this use?
Classify the sentiment.
Review: 'Fast delivery, great packaging' -> positive
Review: 'Item arrived broken' -> negative
Review: 'Exactly as described' ->
Question 9 of 10
This sometimes raises a JSONDecodeError because the model adds a sentence before the JSON. Best fix?
data = json.loads(response.text)
Question 10 of 10
Even with temperature set to 0, the same prompt can return slightly different answers. Why?