Hello i have a question.
In the Jupyter Notebook in the “Guidelines” section of the course there is this prompt. Why are newlines ended by a slash character
If it is to mark newlines to the model, why is it important in this example for the model to recognize the newlines? Or is it for something else?
text = f"""
You should express what you want a model to do by \
providing instructions that are as clear and \
specific as you can possibly make them. \
This will guide the model towards the desired output, \
and reduce the chances of receiving irrelevant \
or incorrect responses. Don't confuse writing a \
clear prompt with writing a short prompt. \
In many cases, longer prompts provide more clarity \
and context for the model, which can lead to \
more detailed and relevant outputs.
Ok, i have just now read the end of the Jupyter Notebook, where there is actually an explanation i hadn’t seen before:
- In the course, we are using a backslash
\to make the text fit on the screen without inserting newline ‘\n’ characters.
- GPT-3 isn’t really affected whether you insert newline characters or not. But when working with LLMs in general, you may consider whether newline characters in your prompt may affect the model’s performance.
So this question can be considered answered.