Create a LLM prompt to work with the following task <task>
- User
Create a LLM prompt to work with the following task
- Assistant
Create a LLM prompt to work with the following task
Certainly! Crafting an effective prompt for a Large Language Model (LLM) involves clearly defining the task, providing necessary context, and specifying the desired format for the output. Below is a structured template you can use to create prompts tailored to various tasks. Replace <task> with your specific task details.
Instruction: Provide a clear and concise instruction to the model about what you want it to do. Be specific to avoid ambiguity.
Example:
You are an expert [your field, e.g., software developer, historian, etc.].
<task>
Additional Context (if necessary): Include any background information or context that the model might need to perform the task effectively.
Example:
Here is some relevant information/context about the task:
- Point 1
- Point 2
- Point 3
Desired Output Format: Specify the format in which you want the response. This could be paragraphs, bullet points, code snippets, etc.
Example:
Please provide the answer in the following format:
1. Introduction
2. Main Points
- Subpoint A
- Subpoint B
3. Conclusion
Constraints and Requirements: Mention any constraints such as word limits, style guidelines, or specific elements that must be included or excluded.
Example:
- The response should not exceed 500 words.
- Use formal language suitable for an academic paper.
- Include at least two references to credible sources.
Example Prompt Using the Template:
Assuming <task> is "summarize the impact of renewable energy adoption in Europe":
You are an expert environmental scientist.
Please summarize the impact of renewable energy adoption in Europe.
Here is some relevant information/context about the task:
- Europe has been investing heavily in wind and solar energy.
- Policy changes have been implemented to support sustainable practices.
- There have been economic and environmental effects due to this shift.
Please provide the answer in the following format:
1. Introduction
2. Environmental Impact
- Reduction in greenhouse gas emissions
- Preservation of natural resources
3. Economic Impact
- Job creation in the renewable sector
- Changes in energy prices
4. Conclusion
Constraints and Requirements:
- The response should not exceed 500 words.
- Use formal language suitable for an academic paper.
- Include at least two references to credible sources.
Be Clear and Specific: Ambiguous instructions can lead to unexpected outputs. Clearly define what you need.
Provide Context: Supplying background information helps the model generate more accurate and relevant responses.
Define the Format: Specifying the desired structure (e.g., bullet points, essays, code) ensures the output meets your requirements.
Set Constraints: Mention any limitations such as word count, style, or formatting to guide the model.
Use Examples: If applicable, providing examples of desired outputs can help the model understand your expectations better.
Iterate and Refine: You may need to tweak your prompt based on the initial outputs to better align with your needs.
To tailor the template to your specific task, follow these steps:
Identify the Task: Clearly state what you want the model to do (e.g., answer a question, generate content, translate text).
Add Relevant Context: Include any information that the model needs to understand the task fully.
Specify the Output Format: Decide how you want the response presented.
Set Any Constraints: Define any rules or limitations to guide the response.
Combine All Elements: Assemble the instruction, context, format, and constraints into a cohesive prompt.
Feel free to share the specific <task> you're working on if you need a more customized prompt!
Not yet included in a published release.