Member-only story
ChatGPT Prompt explained
How to generate a high-quality responses
Prompt engineering is the process of designing, refining, and optimizing prompts to generate a high-quality responses from language models like ChatGPT. It involves experimenting with different ways of phrasing questions or statements and using various techniques to guide the model’s behavior.
Prompt structure
Structuring a prompt effectively involves several key principles, which can help guide the language model in providing accurate and relevant responses. The prompt structure can be divided into these principle sections:
- Act instruction
- Clear opening
- Provide context
- Response format
- Constraints or limitations
Act instruction
If you want the model to assume a specific role or perspective (e.g., a historian, scientist, or financial advisor), mention this in your prompt to help shape the response.
Act as a scientist
Clear opening
Start your prompt with a direct question or statement that indicates the topic or focus of your query. You can use phrases like “Tell me about…”, “Explain…”, “Describe…”, or “What is…?” to initiate your…