AI Prompt Wisp
Welcome to AI Prompt Wisp! A prompt is an instruction or query you give to an AI model to get a specific output. Mastering the art of prompt engineering is key to unlocking the full potential of artificial intelligence. This guide introduces the fundamentals of AI prompts.
Classification of AI Prompts
Prompts can be categorized based on the task they are designed to accomplish.
Instructional Prompts
These are direct commands asking the AI to perform a specific task like summarizing, translating, or calculating.
Creative Prompts
These prompts are used to generate creative content such as poems, stories, scripts, or marketing copy.
Role-Playing Prompts
In these prompts, you ask the AI to adopt a specific persona, such as a marketing expert, a senior software engineer, or a travel guide, before answering a question.
Chain-of-Thought (CoT) Prompts
These prompts instruct the AI to "think step-by-step" to break down complex problems into smaller, manageable parts, leading to more accurate and logical responses.
The Role of AI Prompts
A well-crafted prompt is crucial because it directly influences the quality, relevance, and accuracy of the AI's response. Its primary roles are:
- Guiding the AI: To focus on the desired topic and context.
- Defining the Output: To specify the desired format, such as a list, a table, a JSON object, or a specific number of paragraphs.
- Controlling Detail and Style: To manage the tone (e.g., formal, casual) and the level of detail in the response.
- Providing Context: To give the AI necessary background information for generating a nuanced and informed answer.
Examples of AI Prompts
Here are some practical examples of how prompts can be used for different tasks.
| Task | Example Prompt |
|---|---|
| Summarization | Summarize the following article into three key bullet points. Focus on the financial impact. [Article text here] |
| Email Composition | Act as a project manager. Draft a professional but friendly email to the development team, reminding them of the upcoming deadline for the 'Phoenix' project this Friday. |
| Code Generation | Write a Python function that takes a list of strings and returns a new list containing only the strings that are palindromes. |
| Creative Writing | Write a short story opening about an old librarian who discovers a book that writes itself. The tone should be mysterious and magical. |