AI and LLMs · Middle · Question 58 of 75

What is the main advantage of putting examples in XML-like tags in a prompt?

Show the answer

Correct answer: The model can tell examples from instructions

Explanation

Clear structure (<example>, <document>) reduces confusion in long prompts and makes them easier to maintain.

Further reading

Problem with a question

AI and LLMs · Middle · question 58

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz