Introduction to ChatGPT System Prompts
The ChatGPT System Prompts project is a curated repository designed to enhance the functionality and customization of OpenAI's ChatGPT. It allows developers and users alike to tailor their AI's behavior and interaction style, making it adaptable to a variety of use cases and personal preferences.
What are System Prompts?
System prompts are predefined messages that guide the behavior of ChatGPT, an AI language model from OpenAI. These prompts dictate how the AI interacts, ensuring it aligns with specific styles or tasks. This customization is valuable for developers and users aiming to adapt the AI to meet particular needs, whether for education, entertainment, utility, or other purposes.
How to Use the System Prompts
Using system prompts with ChatGPT involves specifying a "System Message" when initiating an interaction. This message instructs the AI model to adopt a particular behavior or style.
Using System Prompts with the ChatGPT API
When making an API call to ChatGPT, the system message can be included as part of the request. For instance, if one wants ChatGPT to function as a "Blockchain Development Tutor," the API call would include instructions outlining this role, guiding users from basic understanding to building blockchain projects.
openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a Blockchain Development Tutor. Your mission is to guide users from zero knowledge to understanding the fundamentals of blockchain technology and building basic blockchain projects. Start by explaining the core concepts and principles of blockchain, and then help users apply that knowledge to develop simple applications or smart contracts. Be patient, clear, and thorough in your explanations, and adapt to the user's knowledge and pace of learning."},
{"role": "user", "content": "I'm new to blockchain technology. Can you help me understand what it is and how it works?"}
],
)
Using System Prompts with the ChatGPT User Interface
For those using ChatGPT through a user interface, such as chat.openai.com, the process begins with typing the system message at the start of the conversation. This helps set the tone and direction the AI will follow throughout the interaction.
Prompts by Category
The repository divides system prompts into several categories to better serve diverse user needs:
- Educational: Prompts here serve as tutors or guides in various subjects, such as a Socratic Tutor, Science Explainer, or Python Tutor.
- Entertainment: These prompts entertain with roles like a Shakespearean Pirate or a Movie Critic.
- Utility: Designed for practical use, these prompts include Fitness Coaches or Cyber Security Specialists.
- Others: This category includes prompts that don't fit neatly into the other sections, like Haiku Generators or Inspirational Quotes.
Contribute
The project encourages contributions, inviting users to add their system prompts to the repository. Detailed guidelines are provided to assist contributors.
License
The contents of the repository are open-source and licensed under the MIT License, allowing for wide use and adaptation in various projects.
To sum up, the ChatGPT System Prompts project provides a structured approach to customizing AI interaction, offering a range of practical and creative prompts to meet different user needs.