Principle 1
: write clear and specific instructionsPrinciple 2
: give the model time to "think"
-
Delimiters can be anything like:
- Triple backticks : ```,
- Triple quotes: """,
- Triple dashes: ---,
- Angle brackets : < >,
- XML Tags :
<tag> </tag>
, - colons
:
-
Using delimiters is also a helpful technique to try and avoid
prompt injections
-
Check the example in the guideline notebook
-
JSON, HTML
-
Check the example in the guideline notebook
- Check the example in the guideline notebook
- Check the example in the guideline notebook
- Check the example in the guideline notebook
- Check the example in the guideline notebook
- Check the example in the guideline notebook
- Boie is a real company, the product name is not real.
prompt = f"""
Tell me about AeroGlide UltraSlim Smart Toothbrush by Boie
"""
response = get_completion(prompt)
print(response)
Completion
:
The AeroGlide UltraSlim Smart Toothbrush by Boie is a high-tech toothbrush that uses advanced sonic technology to provide a deep and thorough clean. It features a slim and sleek design that makes it easy to hold and maneuver, and it comes with a range of smart features that help you optimize your brushing routine.
Main Course :
GPT Best Practices - openai :
API Reference :