ChatGPT Cheat Sheet รวมคำสั่ง ChatGPT, Bing
ในบทความนี้จะรวมคำสั่งในการถาม ChatGPT และ New Bing รวมไปถึงปุ่ม Discovery ที่อยู่ใน Microsoft Edge ตัวใหม่ด้วย
เนื้อหาเกือบทั้งหมด ไม่ได้คิดขึ้นมาเอง แต่ไปรวมจากของชาวบ้านเขามาและ ถามจาก Bing
Reference : ChatGPT Cheat Sheet (kdnuggets.com) ChatGPT Cheat Sheet & Quick Reference ChatGPT Cheat Sheet — Collabnix
Quickstart tutorial — OpenAI API
เนื้อหายังไม่สมบูรณ์ Update 20 02 2023
link ย่อ : https://bit.ly/bingpromt
Table of content
- คำสั่งทั่วไป เข้าใจภาษาคน
- Code
- structured Output Style
- Unstructured Output Style
- Media Types
- GPT capability
คำสั่งหลายๆอย่าง เมื่อใช้รวมกันแล้วจะได้ผลลัพธ์ที่ดีขึ้น
THE FRAMEWORK:
- Simulate a persona
- Write your task
- Outline the steps to complete that task
- Give it context and constraints
- Specify the goal
- Format the output
Eg. “(1) As a marketing professional (2) create ten taglines (3) for our eco-sustainable coffee cup. (4) The product’s core selling point is that it is earth-friendly, biodegradable and made from bamboo. The tagline should be two to six words. Do not use the word ‘green’. (5) The goal is to encapsulate our brand’s sustainable ethos in a short and snappy tagline. (6) The output should be a bullet point list.”
ChatGPT vs Bing
1. คำสั่งทั่วไป เข้าใจภาษาคน
Text generation
Prompt: Write
Prompt: Recommend
prompt : more
Prompt : Can you suggest a creative name for my tech startup?
Prompt: Please create an outline for a course on web development for beginners.
ปุ่ม Discovery ที่มุมขวาของ Edge
Compose : จริงๆอันนี้มันทำช่องมาให้แล้ว คิดง่ายดี
Summarization
Prompt: Summarize this text:
Prompt: Summarize this youtube video
Prompt: Summarize PDF in this page หรือ summary ตรงๆเลยก็ได้
Open Domain Question Answering
Prompt :
- “What is” — for questions about definitions and explanations
- “How to” — for questions about processes and procedures
- “Why” — for questions about reasons and justifications
- “When” — for questions about time and timing
- “Where” — for questions about location and direction
- “Who” — for questions about people and identities
- “Which” — for questions about choices and options
- “Can” or “Could” — for questions about possibilities and abilities
- “Should” — for questions about recommendations and advice
- “What if” — for hypothetical or imaginative questions
- “Do” or “Does” — for questions about actions or activities
- “Is” or “Are” — for questions about qualities, attributes or states
- “Have” or “Has” — for questions about possession or ownership
- “Will” — for questions about the future or predictions
- “Would” — for questions about hypothetical or imagined situations
- “If” — for conditional or hypothetical questions
- “Asking for a friend” — to ask sensitive or embarrassing questions anonymously
- “Comparison” — to compare two or more things or concepts
- “Opinion” — to ask for personal views or beliefs
- “Evidence” — to ask for proof or support for a claim
- “What are the benefits of” — for questions about advantages or positive outcomes
- “What are the drawbacks of” — for questions about disadvantages or negative outcomes
- “What are the different types of” — for questions about categorization or classification
- “What are the similarities and differences between” — for comparative questions
- “What are the steps to” — for questions about step-by-step processes
- “What are the most common reasons for” — for questions about causes or explanations
- “What are the best practices for” — for questions about recommended methods or approaches
- “What are the latest developments in” — for questions about recent advances or updates
- “What are the ethical implications of” — for questions about ethical considerations
- “What are the long-term effects of” — for questions about long-term consequences or outcomes.
- “What are the limitations of” — for questions about the weaknesses or constraints of something
- “What are the advantages and disadvantages of” — for questions about the pros and cons of a topic
- “What are the most effective ways to” — for questions about effective methods or strategies
- “What are the most common misconceptions about” — for questions about common misunderstandings or false beliefs
- “What are the benefits of learning” — for questions about the advantages of learning a particular skill or topic
- “What are the best resources for” — for questions about recommended resources or references
- “What are the qualifications for” — for questions about requirements or qualifications for a particular job or position
- “What are the risks and rewards of” — for questions about the potential risks and benefits of a decision or action
- “What are the future trends in” — for questions about expected changes or developments in a particular field or area
- “What are the controversies surrounding” — for questions about contentious or disputed issues.
- “What are the essential elements of” — for questions about key components or elements of something
- “What are the requirements for” — for questions about the criteria or standards necessary for a particular situation or task
- “What are the common myths about” — for questions about common misconceptions or false beliefs about a topic
- “What are the potential consequences of” — for questions about the possible outcomes or effects of a decision or action
- “What are the ethical considerations in” — for questions about ethical issues or dilemmas related to a topic
- “What are the ways to overcome” — for questions about strategies or methods for addressing a challenge or obstacle
- “What are the emerging trends in” — for questions about new or developing trends in a particular field or area
- “What are the implications of” — for questions about the broader implications or significance of a particular issue or development
- “What are the examples of” — for questions about specific examples or instances of a concept or idea
- “What are the reasons for and against” — for questions about arguments or perspectives for and against a particular topic or issue.
- “What are the similarities between” — for questions about identifying commonalities between two or more things
- “What are the differences between” — for questions about identifying distinctions between two or more things
- “What are the implications for” — for questions about the potential effects or consequences for a particular situation or group
- “What are the most common questions about” — for questions about common inquiries or curiosities related to a topic
- “What are the top tips for” — for questions about advice or recommendations for a particular situation or task
- “What are the causes and effects of” — for questions about the reasons behind something and its outcomes or consequences
- “What are the long-term benefits of” — for questions about the positive effects or outcomes of something over an extended period of time
- “What are the different perspectives on” — for questions about the various viewpoints or opinions on a particular topic
- “What are the most important considerations when” — for questions about the key factors or aspects to consider when making a decision or taking action
- “What are the potential solutions to” — for questions about possible ways to address or solve a particular problem or challenge.
- “What are the future challenges facing” — for questions about upcoming challenges or obstacles in a particular field or area
- “What are the key features of” — for questions about important or distinctive features of a topic or concept
- “What are the benefits of using” — for questions about the advantages of using a particular tool, technique or approach
- “What are the different methods for” — for questions about various methods or approaches for accomplishing a task or achieving a goal
- “What are the latest trends in” — for questions about recent or emerging trends in a particular field or area
- “What are the most common causes of” — for questions about the most frequent or likely causes of a problem or issue
- “What are the potential implications for” — for questions about the possible consequences or outcomes of a particular development or decision
- “What are the most common misconceptions about” — for questions about common misunderstandings or false beliefs about a topic
- “What are the different types of” — for questions about categories or classifications of a particular topic or concept
- “What are the steps to take when” — for questions about the appropriate steps to take when facing a particular situation or problem.
Paraphrasing
Prompt: rewrite this text:
Sentiment Analysis (few-shot or zero-shot)
Prompt: sentiment of:
Text to Table
Prompt: create a table from this text:
Token Classification (few-shot or zero-shot)
Prompt: classify the named entities in this text:
Machine Translation
Prompt: translate this text into thai:
2. Code
Code Generation
Prompt: show me how to make an [Things you want] in [Language]
Fix your code
Prompt: Why this code is not working? / Fix my code
Code Explanation
Prompt: explain this python code: / What this code does?
Programming Language Conversion
Prompt: convert this code from Python to Javascript:
Translate this code into Python:
Data Object Conversions (JSON, XML, CSV etc.)
Prompt: convert this JSON object into CSV:
convert this JSON object into CSV: {“Name”:{“0”:”John Smith”,”1":”Jane Doe”,”2":”Bob Johnson”,”3":”Samantha Williams”},”Age”:{“0”:32,”1":28,”2":45,”3":40},”Gender”:{“0”:”Male”,”1":”Female”,”2":”Male”,”3":”Female”},”O ccupation”:{“0”:”Software Developer”,”1":”Data Analyst”,”2":”Project Manager”,”3":”Marketing Director”}}
Code an entire software program
prompt:
Write a program that calculates the factorial of a given number in python?
Add comments to your codebase
prompt:
Add comments to this code: function addNumbers(a, b) { return a + b; }
3. Structured Output Styles
List
Prompt: give me a list of 5 citrus fruits
Numbered List
Prompt: give me a numbered list of 5 citrus fruits
Headings and Subheadings
Prompt: convert this text into headings and subheadings:
convert this text into headings and subheadings: Babe Ruth joined the New York Yankees in 1920. The Boston Red Sox sold his contract to the Yankees. He played for the Yankees from 1920 to 1934, and during that time he established himself as one of the greatest players in baseball history.
Tables
Prompt: create a table from this list:
create a table from this list: Oranges, Lemons, Limes, Grapefruit, Tangerines
4.Unstructured Output Style
Narrative Modes (1st, 2nd or in the 3rd person)
Prompt: write a paragraph on how to make brownies in the 1st person
Formal
Prompt: write a paragraph on the topic of cellular automata in a formal style
Informal
Prompt: write a paragraph on the topic of cellular automata in an informal style
Personas
Prompt: write a paragraph on the topic of cellular automata in the style of a social media influencer Hey guys, have you heard about cellular automata? It’s this super cool concept that simulates the behavio
Custom Text Manipulation
Prompt: write a paragraph on the history of the calculator, include emojis at the end of every sentence, and do not capitalize the first word in each sentence
5.Media Types
Write Social Media Posts
Prompt: write a tweet on futurism
Prompt: write an Instagram caption for Valentine's day which this post include picture of me and my girlfriend named “Air” that we dated for 9 months already
Write Blogs
Prompt: write a blog on French cuisine
Write Emails
Prompt: write an email selling software to corporate executives
Write Poems
Prompt: write a poem about the soul and show rhyme and meter headings
Write Songs
Prompt: write a folk song about the sunset show guitar chord
Write Resumes/Cover Letters
Prompt: write a software engineer resume
ChatGPT
Ask ChatGPT About Its Own Capabilities
Prompt: what ways can you structure text output?
Correct ChatGPT on Its Knowledge
Prompt:
Ask ChatGPT to Expand on Answer
Prompt: Can you explain more on … / can you show me detail