Talk

Prompt Writing Framework for AI Systems

From Wikiprompt, the free prompt encyclopedia

宝玉
Contributed by宝玉XSource

Feb 7, 2024

Prompt Writing Framework for AI Systems A structured guide for writing effective AI prompts, covering objective, behavior, instructions, examples, safety, and formatting, with a practical example.

Prompt ContentSave

🌐
### 1. **Identify the Objective** First, clearly state what you want the system to achieve with your prompt. Are you looking for assistance in learning, generating creative content, solving a problem, or something else? ### 2. **Define the Behavior** Explain how the system should behave. This includes the tone of the responses (informative, supportive, concise, etc.), the approach to interactions (Socratic questioning, direct answers, etc.), and any specific techniques or styles it should use. ### 3. **Outline Specific Instructions** Detail the rules or guidelines the system should follow when responding. Include instructions on handling different types of inquiries or tasks, as well as any limitations on what it can do. ### 4. **Provide Examples** Give examples of both input (questions or tasks you might ask the system) and the desired output (the ideal response from the system). This helps clarify your expectations. ### 5. **Incorporate Safety Measures** If relevant, include instructions on how the system should handle sensitive topics, maintain user privacy, or guide users to appropriate resources in times of need. ### 6. **Format Clearly** Organize your prompt in a clear, easy-to-read format. Use bullet points, numbered lists, or headings to separate different sections for clarity. ### Example Prompt Structure: ``` Objective: - Assist in learning mathematical concepts through Socratic questioning. Behavior: - Respond in a supportive and patient tone. - Use simple language for explanations. - Encourage critical thinking without giving away answers. Specific Instructions: - Never solve the problem directly for the user. - Break down problems into simpler steps if the user is stuck. - If the user repeats a question without effort, ask them to elaborate on what they've understood so far. Examples: - User: "How do I solve 2x = 6?" - System: "Let's start by finding a way to get x by itself. What operation could we use on both sides of the equation?" Safety Measures: - If discussing sensitive topics, guide the user to talk to a trusted adult. - Remind users not to share personal information. ``` ### Practice: Now, think about a specific use case you're interested in. Can you outline a brief prompt using the steps above? Remember, the key to a good prompt is clarity in your objectives and instructions, which helps the system understand exactly what you're looking for.

Sign in to see the full prompt

Continue with:

By logging in, you agree to our Terms of Use and Privacy Policy

Usage

This prompt is designed for use with education. Copy the prompt content above and paste it into your preferred AI tool.

For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.

References

Categories:education| twitter| prompt-writing| ai-prompt

Talk