Newline Character (\n)
The newline character, denoted by \n, is a special character that functions as a line break in text. When processed within an input string, it signals a move to the start of the next line.
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Computing Sciences
Foundations of Large Language Models Course
Related
Newline Character (\n)
Defining Answer Format and Semantics in Prompts
A researcher wants to test a language model's ability to judge the grammar of various sentences. They decide that for their experiment, the prompt must present the sentence to be evaluated before asking the model to make a judgment. Which of the following prompt designs meets this specific structural requirement?
Analyze the structure of each prompt template below and match it with the correct description of its format.
Improving Prompt Design for Grammaticality Judgment
Learn After
A language model is provided with the input string:
Analyze the sentiment of the following sentence.\nSentence: The new product launch was a resounding success.Based on the special character in the string, which of the following best represents the formatted structure the model will process?Formatting a Prompt with a Line Break
Improving Prompt Readability