This exercise is from Prompt Engineering course. I believe you tried to make some tests - but there are a few tips:
- In the
def below:
def get_completion(prompt, model="gpt-3.5-turbo"):
...
temperature=0, #check the temperature
#to prevent surprises in a training course
...
- Your prompt:
...
You will be provided with text delimited by triple backticks.
...
But you provide the text_1 with triple quotes - check the video:
text_1 = f"""
Making a cup of tea is easy! First, you need to get some \
...
cup of tea to enjoy.
"""
- The model tried hard to comply with the instructions:
...
If it contains a sequence of instructions, \
re-write those instructions in the following format:
Step 1 - ...
...
The model gave you, alright:
Step 1 - Get some water boiling.
...
But you didn’t provide any text delimited by triple backticks.
In order to comply with the instructions, the model used the most famous ASCII Test sentence (all computers have it, including Windows - check your fonts) on its own:
The quick brown fox jumps over the lazy dog.
Then, in this fox sentence there are no instructions - so to comply with:
If the text does not contain a sequence of instructions, \
then simply write \"No steps provided.\"
the model gave you, correctly:
No steps provided.
It is a good and obedient model - it did everything you told it to do it.