
Exploring the Basics
Click to read more
Data Structures and Manipulation
Click to read more
Reading and Writing Data
Click to read more
Data Cleaning and Preprocessing
Click to read more
Exploratory Data Analysis (EDA)
Click to read more
Statistical Analysis
Click to read more
Machine Learning for Data Analysis
Click to read more
Time Series Analysis
Click to read more
Text Analysis
Click to read more
Advanced Topics
Click to read more
▶ Introduction to ChatGPT
Introduction to ChatGPT
ChatGPT is a user-friendly chatbot platform that provides a fun and engaging way for people to communicate with each other. It is designed to help people connect with each other by providing a platform for them to chat about various topics.
ChatGPT is powered by state-of-the-art artificial intelligence technology that allows it to understand and respond to users' queries and requests. The platform can be accessed through various channels, such as Facebook Messenger, Telegram, and Slack.
ChatGPT is not just a chatbot platform. It is also a community of users who share interests and ideas. Users can join various groups and channels on the platform to discuss topics they are passionate about.
Whether you want to chat with friends, get advice from experts, or simply have fun, ChatGPT is the perfect platform for you. So why not give it a try today and start chatting with people from all around the world!
A few terms you should know:
Structure
I like easy ways to remember how to write my prompts.
PACO : Person | Action | Context | Output
How to Use ChatGPT
ChatGPT can do many things, including the following:
Best Practices for Creating Good Prompts
Coming up with good question prompts for ChatGPT can be challenging, but some general principles and strategies can help guide you in the process.
▶ Source:
https://heyzoish.gumroad.com/ (Super Prompts)
https://www.freecodecamp.org/news/how-to-use-chatgpt-for-data-scientists/
▶ How to Communicate with ChatGPT
Prompt Engineering a step-by-step process to communicate with ChatGPT
What is Prompt Engineering?
Communication with AI is crucial and understanding how to communicate with it effectively is helpful. The entire communication process revolves around writing commands which are referred to as prompts.
With that said, we can easily define prompt engineering as the step-by-step process of creating inputs that determine the output to be generated by an AI language model.
High quality inputs will result in better output. Similarly, poorly defined prompts will lead to inaccurate responses or responses that might negatively impact the user. After all, "With great power comes great responsibility".
Prompt engineering cuts across different applications, including chatbots, content generation tools, language translation tools, and virtual assistants. But you might be wondering how AI technology generates its responses. Let’s find out in the next section.
How do Language Models Work?
AI language models such as GPT-4 rely on deep learning algorithms and natural language processing (NLP) to fully understand human language.
All this is made possible through training that consists of large datasets. These datasets include articles, books, journals, reports, and so on. This helps the language models develop their language understanding capabilities. With the data, the model is fine-tuned in a way that enables it to respond to particular tasks assigned to it.
Depending on the language model, there are two main learning methods – supervised or unsupervised learning.
Supervised learning is where the model uses a labeled dataset where the data is already tagged with the right answers. In unsupervised learning, the model uses unlabeled datasets, meaning the model has to analyze the data for possible and accurate responses. Models like GPT-4 use the unsupervised learning technique to give responses.
The model has the ability to generate text based on the prompt given. This process is referred to as language modeling, and it's the foundation of many AI language applications. Learn more about Supervised vs Unsupervised Learning from IBM.
At this point, you should understand that the performance of an AI language model mainly depends on the quality and quantity of the training data. Training the model with tons of data from different sources will help the model understand human language including grammar, syntax, and semantics.
Note that, irrespective of the quantity of data used to train these models, there will always be challenges when it comes to understanding natural language. After all, this is an artificial being and understanding things like sarcasm, irony, or human feelings can be difficult for an AI model to interpret.
Now that we have an understanding of how the AI language model works, let's look at different prompt categories that are available to help us communicate with the models.
What are Prompt Categories?
You can use prompts to ensure smooth communication with AI language models. The first step to writing quality prompts is understanding their different classifications so you can easily structure the prompts with a given target response in mind.
Some of the major prompt categories include:
An example of a role-based prompt is:
As a coding tutor, your role is to create personalized study plans to help individuals learn how to code. Your responsibilities will include understanding the goals, time commitment, and preferred learning resources of each student, and using that information to develop a comprehensive study plan with clear timelines and links to relevant resources. You should be able to adapt your teaching style to meet the individual needs of each student and provide ongoing support and guidance throughout the learning process. Your ultimate goal will be to help each student develop the skills and knowledge they need to achieve their coding goals.
This prompt should also include what you intend to learn, the intended learning period, and your goal for learning. Remember that the more details you give, the more tailored results you will get.
Principles of Effective Prompt Engineering
Now that we have covered the different prompt categories, let's look at how you can craft good prompts. To help you understand better, we’ll go through different prompt engineering frames that optimize the responses we get by providing clear queries meant for NLP.
You should keep the following in mind when creating prompts:
Creating ChatGPT Prompts: A Framework
Using a prompt framework when creating prompts for ChatGPT. Frameworks provides structure and clarity to the prompt creation process. It breaks prompt creation process into clear and distinct steps. I created the below framework (CRISPE) for my own use and experimentation of ChatGPT.
CRISPE Prompt Framework:
How to Build Prompts -> CRISPE Example
| Step | Example Prompt |
| Capacity and Role | `Act as an expert on software development on the topic of machine learning frameworks, and an expert blog writer.` |
| Insight | `The audience for this blog is technical professionals who are interested in learning about the latest advancements in machine learning.` |
| Statement | `Provide a comprehensive overview of the most popular machine learning frameworks, including their strengths and weaknesses. Include real-life examples and case studies to illustrate how these frameworks have been successfully used in various industries.` |
| Personality | `When responding, use a mix of the writing styles of Andrej Karpathy, Francois Chollet, Jeremy Howard, and Yann LeCun.` |
| Experiment | `Give me multiple different examples.` |
The final prompt being:
Act as an expert on software development on the topic of machine learning frameworks, and an expert blog writer. The audience for this blog is technical professionals who are interested in learning about the latest advancements in machine learning. Provide a comprehensive overview of the most popular machine learning frameworks, including their strengths and weaknesses. Include real-life examples and case studies to illustrate how these frameworks have been successfully used in various industries. When responding, use a mix of the writing styles of Andrej Karpathy, Francois Chollet, Jeremy Howard, and Yann LeCun.
I would refine this by saying Give me another example or Give me multiple examples and other prompts below (under Prompt Refinement).
Prompt Refinement: Fixing 'Soulless Writing'
Prompt Refinement: Increase Readability
When not to use Prompt Engineering or ChatGPT
▶ Source:
https://www.freecodecamp.org/news/how-to-communicate-with-ai-tools-prompt-engineering/
https://github.com/mattnigh/ChatGPT3-Free-Prompt-List#when-not-to-use-prompt-engineering-or-chatgpt
▶ Style
Let’s go over a few format responses:
▶ Source:
https://heyzoish.gumroad.com/ (Super Prompts)
▶ Super Prompts
Super Prompts are a feature of GPT-4 that allow users to give more specific instructions to the model. By entering a prompt with specific instructions, users can guide the model to produce more accurate and relevant responses. For example, a prompt like "Write a paragraph about the benefits of solar energy" will likely produce a more focused response than a more general prompt like "Write something about energy." Super Prompts can be especially useful for chatbots, where the accuracy and relevance of responses are especially important.
They are the easiest and best way to get responses from AI.
Superprompts include the following information:
Example of a Superprompt:
Action: Write a launch announcement for a new feature, including an overview, target audience, key features and benefits, value proposition, use cases, technical specifications, launch details, support and resources, and contact information.
Context: Overview of the new feature: [enter] Target audience: [enter] Key features and benefits: [enter] Value proposition: [enter] Use cases: [enter] Technical specifications: [enter] Launch details: [enter] Support and resources: [enter] Contact information: [enter]
Output: Provide a concise and informative launch announcement in the form of an email or internal communication.
Action: Write a launch announcement for a new feature, including an overview, target audience, key features and benefits, value proposition, use cases, technical specifications, launch details, support and resources, and contact information.
Context: Overview of the new feature: [enter] Target audience: [enter] Key features and benefits: [enter] Value proposition: [enter] Use cases: [enter] Technical specifications: [enter] Launch details: [enter] Support and resources: [enter] Contact information: [enter]
Output: Provide a concise and informative launch announcement in the form of an email or internal communication.
Action: Write a comprehensive Product Requirements Document (PRD) based on the provided information.
Context: Business Objectives: [Describe the business objectives related to this product or feature.]
Product Vision and Strategy: [Explain the overall vision and strategy for the product or feature, including its purpose, target audience, and unique selling points.]
Key Features and Functionality: [Provide a list of the key features and functionalities that the product or feature should include.]
Technical Details: [Include any high-level technical details that may be relevant to the product or feature, such as platforms, integrations, or constraints.]
Timeline: [Give a rough idea of the expected timeline for the product or feature's development and launch.]
Success Metrics: [Outline the metrics that will be used to measure the success of the product or feature.]
Output: Structure the PRD with the following sections and instructions:
Problem Alignment High-Level Approach Narrative (optional) Goals Non-goals Solution Alignment Key Features Future Considerations Key Logic
▶ Source:
https://heyzoish.gumroad.com/ (Super Prompts)
▶ Mega Prompts
Topic of the ebook: [book topic] Keywords to use: [keywords]
Topic of the ebook: The Ultimate Guide to Selling on Gumroad Keywords to use: Zero to Sold
Title: The Ultimate Guide to Selling on Gumroad: From Zero to Sold
▶ Introduction:
Discover the secrets of building a successful business on Gumroad, a popular platform for creators to sell digital products. In this comprehensive guide, you'll learn everything from getting started to advanced strategies for growing your income on Gumroad. This eBook will provide you with the in-depth information you need to go from zero to sold.
▶ Chapters:
▶ Introduction in friendly tone
Welcome to "The Ultimate Guide to Selling on Gumroad: From Zero to Sold"! If you've been searching for a comprehensive, friendly, and practical guide to help you navigate the exciting world of Gumroad, you've come to the right place. We understand that starting a new venture can be both thrilling and a little daunting, so we've created this guide to make your journey as smooth as possible.
In this eBook, we'll cover everything from setting up your Gumroad account and finding your niche to creating high-quality products and marketing them effectively. We want to help you turn your passion, skills, or expertise into a profitable digital business that you can be proud of.
Our goal is to empower you with the knowledge and strategies you need to create, market, and sell your digital products on Gumroad with confidence. We'll share insider tips, best practices, and real-life case studies to inspire and guide you every step of the way.
So, grab your favorite beverage, get comfortable, and let's embark on this exciting journey together. By the time you reach the end of this guide, you'll be well-equipped to turn your Gumroad dreams into a successful reality. Happy reading, and here's to your success!
Keep going with all the other chapters or rewrite if they’re not up to your standards.
There is a limit of words in ChatGPT.
If it stops in the middle of a paragraph or sentence.
Continue [mention the last line]
or
Resume [where you left off]
Results not what you want, you can ask to rewrite.
Rewrite [mention the paragraph or outline heading]
▶ Source:
https://heyzoish.gumroad.com/ (Super Prompts)
▶ Content Creation
ChatGPT can be used to generate text for a wide range of purposes - whether it's social media posts, blog articles, or marketing materials. By giving ChatGPT clear, concise prompts and maintaining a consistent tone, you can create content that's of the highest quality.
▶ Source:
https://heyzoish.gumroad.com/ (Super Prompts)
▶ More Tips
More Tips on Interacting with ChatGPT
Once you have your responses from ChatGPT, there's still a lot you can do. ChatGPT has contextual awareness, so it doesn't "forget" what you were talking about if you ask in the same session/thread. Try these techniques to get even more info:
▶ Source:
Source: https://www.freecodecamp.org/news/how-to-use-chatgpt-for-data-scientists/
