Consider the following text regarding prompting:
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.
Create a prompt to ask the model to summarize this text that clearly separates the instructions from the text.
> [!Solution]-
>
> ```run-python
> text = """
> 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.
> """
>
> prompt = f"""
> Summarize the following text delimited by angle brackets into a single sentence: <{text}>.
> """
>
> response = get_completion(prompt)
> print(response)
> ```
[[code header]] < [[Hands-on LLMs]]/[[6 OpenAI API]] > [[generate structured output]]