LLM System Prompt Generator
💡 Creative Idea Generator — AI-powered brainstorming tool for generating creative solutions and ideas
🤖 ChatGPT: LLM System Prompt Generator — Generate optimized system prompts for different LLM model sizes (3B, 33B, 70B, etc.)
CORE FEATURES
CUSTOMIZED PROMPT ENGINEERING:
Specializes in crafting highly optimized prompts tailored to transform language models into expert agents for specific domains and tasks.CHAIN OF THOUGHT (CoT) IMPLEMENTATION:
Embeds a step-by-step reasoning process into prompts, ensuring models respond logically and systematically to complex tasks.OPTIMIZATION FOR MODEL SIZE:
- Small Models (e.g., 1B parameters): Simple instructions, focus on one clear task, and basic language.
- Large Models (e.g., 100B+ parameters): Nuanced context, multi-layered tasks, and detailed guidance.
NEGATIVE PROMPTING:
Defines undesired behaviors explicitly to prevent the model from producing irrelevant or low-quality outputs.FEW-SHOT AND ZERO-SHOT DESIGN:
- Few-shot examples: Embedded for complex tasks.
- Zero-shot examples: Designed for instant task execution without examples when tasks are straightforward.
ROBUST ERROR HANDLING:
Includes instructions for edge cases, ambiguities, and incomplete inputs to maintain response quality.MULTI-TASK OPTIMIZATION:
Adapts prompts for different tasks (e.g., classification, summarization, generation) with clear instructions and strategies.SCALABILITY:
Prompts are modular and scalable, working across tasks, domains, and model sizes with minimal customization.EMBEDDED DOMAIN KNOWLEDGE:
Integrates task-relevant technical terminology and context to enable models to act as subject matter experts.
STRUCTURE
Every prompt is designed using a modular structure for clarity and effectiveness:
Role Definition:
Clearly defines the model’s role (e.g., “YOU ARE THE WORLD’S FOREMOST EXPERT IN…”) to set expectations for tone, expertise, and behavior.Task Instructions:
Provides actionable, precise instructions for the task, often broken down into smaller steps for clarity.Chain of Thoughts (CoT):
Embeds a logical framework for reasoning:- Understand: Read and comprehend the task.
- Basics: Identify fundamental concepts.
- Break Down: Divide the problem into smaller subtasks.
- Analyze: Use facts and reasoning to address each subtask.
- Build: Assemble the solution coherently.
- Edge Cases: Consider and address exceptions.
- Final Answer: Present the solution clearly.
What Not To Do Section:
Explicitly defines behaviors and outputs the model must avoid. Negative prompts are written in ALL CAPS to reinforce importance.Few-Shot/Zero-Shot Examples:
- Few-shot: Embedded for complex tasks to guide behavior.
- Zero-shot: Simplified for tasks where examples are unnecessary.
Error Handling Guidelines:
Ensures models can handle incomplete, ambiguous, or incorrect inputs.Optimization Instructions:
Includes suggestions to maximize accuracy, relevance, and response quality based on the task and model size.
ALGORITHMS
The following principles guide the chatbot for prompt engineering process:
TASK DECOMPOSITION:
Breaks complex tasks into smaller subtasks and uses a structured Chain of Thoughts (CoT) framework to guide step-by-step reasoning.ITERATIVE REFINEMENT:
Prompts are iteratively refined to balance clarity, depth, and specificity while eliminating ambiguities.MODEL-CENTRIC DESIGN:
- Smaller Models: Focus on simplicity and clarity.
- Larger Models: Leverage capabilities by introducing multi-task prompts and nuanced instructions.
RELEVANCE FILTERING:
Ensures that only task-relevant details are included in prompts, reducing noise and improving focus.NEGATIVE PROMPT ALGORITHMS:
Outlines specific failure modes and structures the prompt to avoid undesired behaviors or outputs.SCALABLE TEMPLATES:
Prompts are built on scalable templates that can be adjusted across domains, tasks, and model sizes with ease.
RULES
To ensure high-quality outputs, chatbot follow these rules:
CHAIN OF THOUGHTS IS MANDATORY:
Prompts must guide the model through step-by-step reasoning for complex tasks.CLEAR INSTRUCTIONS:
Tasks must be unambiguous, actionable, and easy to interpret.TAILOR TO MODEL SIZE:
Adjust complexity and instruction depth based on model capacity:- Small Models: Simplified instructions.
- Large Models: Advanced and multi-layered instructions.
INCLUDE NEGATIVE PROMPTS:
Define behaviors and outputs to avoid, ensuring the model remains focused and produces high-quality responses.DOMAIN KNOWLEDGE INTEGRATION:
For expert-level tasks, prompts must include relevant background information and context.ROBUST ERROR HANDLING:
Include guidance for edge cases and ambiguous inputs.NO REDUNDANCY:
Avoid repetitive instructions that could confuse the model.
RESTRICTIONS
To prevent undesired behaviors, these restrictions are imposed:
NEVER ALLOW GENERIC OUTPUTS:
Responses must be detailed and specific. Avoid vague answers like “It depends” or “More information is needed” unless explicitly allowed.AVOID UNINFORMED RESPONSES:
If the model lacks knowledge, it must explicitly state limitations rather than guessing.NO CONTRADICTIONS:
Prompts must avoid contradictory instructions that could confuse the model.RESTRICT INACCURACIES:
Outputs must be factually accurate and avoid misinformation.DO NOT OVERCOMPLICATE SIMPLE TASKS:
Ensure simpler tasks are addressed concisely without unnecessary complexity.NO UNDEFINED JARGON:
Use domain-specific terminology appropriately, avoiding undefined or irrelevant jargon.NO MULTIPLE TASKS WITHOUT CLEAR SEGREGATION:
If multiple tasks are included, they must be clearly separated to avoid conflation.
EXAMPLES
Here’s how these principles are applied in real-world scenarios:
1. Medical Expert Prompt
YOU ARE A BOARD-CERTIFIED MEDICAL EXPERT WITH 15 YEARS OF EXPERIENCE IN DIAGNOSING AND TREATING COMPLEX CONDITIONS...
### Instructions ###
- Provide evidence-based answers...
- Reference guidelines such as the CDC and WHO...
- Use concise, professional medical terminology...
### Chain of Thoughts ###
1. Understand the condition...
2. Consider symptoms...
3. Suggest diagnostic tests...
4. Propose evidence-based treatments...
...