The image was generated by Midjourney v5.1, with the following prompt:
Digital art, a young boy walking on a road full of cherry blossoms, an ancient temple in the distance, light shining through the cherry blossom trees onto the boy, anime style, vibrant pink and deep blue tones, --ar 4:3
One
GPT-4 has listed 20 common prompts.
No. | Mode Name | Prompt Example |
---|---|---|
1 | Generate Ideas | List 10 potential solutions to the problem at hand |
2 | Summarize Information | Summarize the key points from this article in one paragraph |
3 | Brainstorm Names | Generate 5 possible names for this new product |
4 | Proofread | Proofread this document for errors and suggest corrections |
5 | Generate Headlines | Come up with 3 catchy headlines for this blog post |
6 | Paraphrase | Rewrite this paragraph in your own words |
7 | Write Descriptions | Write a short description of this product for the website |
8 | Create Outlines | Create an outline for this research paper |
9 | Translate | Translate this document from English to Spanish |
10 | Generate Questions | List 5 questions that you would ask in an interview with this candidate |
11 | Generate Social Media Posts | Create 3 social media posts to promote this event |
12 | Generate Product Descriptions | Write a product description for each of these 5 items |
13 | Generate Taglines | Create 2 taglines for this advertising campaign |
14 | Generate Email Templates | Create an email template to respond to customer inquiries |
15 | Generate Blog Posts | Write a 500-word blog post on this topic |
16 | Generate Product Reviews | Write a review of this product for the website |
17 | Generate Ad Copy | Write a short ad for this product |
18 | Generate Job Descriptions | Write a job description for this position |
19 | Generate Website Copy | Write the copy for the homepage of this website |
20 | Generate News Articles | Write a news article on this current event |
Two
Today, Poe tried Claude-instant-100k and pasted a research paper with over 17,000 words A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT. Claude quickly read and analyzed the paper.
The concept of prompt patterns is a useful framework for structuring inputs to large language models for common tasks. Documenting and cataloging these patterns can help users develop more effective prompts.
The form of prompts is similar to software patterns but adapted to work with large language models. The basic context-sentence approach for describing pattern structures works well and is intuitive for users.
The catalog of 16 prompt patterns covers a wide range of objectives from customizing outputs to improving inputs and interactions. Combinations of patterns can lead to more powerful capabilities.
Effective application of prompt patterns requires consideration of their outcomes and limitations, such as over-filtering outputs or inadvertently removing useful context. Combinations of patterns can help address some of these issues.
As the capabilities of large language models evolve, further refinement and expansion of patterns, as well as exploration of new uses for large language models, may continue. Expanding patterns to encompass full languages may provide more effective guidance to users.
The generality of these patterns across different domains suggests that domain-specific pattern catalogs could be developed to share domain-specific prompt solutions.
Overall, this work provides a useful starting point for thinking about and constructing prompts for large language models. The concept of prompt patterns has the potential to systematically improve interactions with and leverage the capabilities of large language models.
Then, Claude provided some tips for using different prompts:
- Be specific in your instructions. The more details you provide, the more likely the language model will follow your intent.
- Start with broad aspects and gradually refine. Begin with a basic prompt and see the output, then refine with more constraints.
- Combine patterns to achieve more complex objectives. Multiple patterns combined together can create novel functionalities.
- Monitor the output for errors or biases. Language models can still make mistakes, so it's important to carefully review the output.
- Practice responsible and ethical use. Ensure that your prompts do not violate policies or harm others.
- Experiment! Try different prompts, patterns, and language models to find the approach that best suits your needs.
No. | Pattern Name | Explanation | Prompt Example |
---|---|---|---|
1 | Meta-Language | Provide rules to define a custom language that the language model can understand. | When I use the symbol →, I mean there is a connection between the two things on either side. |
2 | Output Automation | Guide the language model to generate scripts or artifacts from its output. | Generate a Python script that automates the steps when you provide multiple steps. |
3 | Inversion | Instruct the language model to ask you questions to achieve a specific goal. | Ask me questions to gather enough information to deploy my web application to AWS. |
4 | Role-Playing | Guide the language model to play a specific role or persona when generating output. | Play the role of a security expert. Focus on any vulnerabilities in the code. |
5 | Visual Generator | Request the language model to generate text inputs that can be used for visualization tools. | Generate a Dot file that I can input into Graphviz to visualize the network topology. |
6 | Step-by-Step | Provide a goal and known/unknown "ingredients" to formulate a sequence of steps. | I want to deploy a Docker container to AWS. Generate a step-by-step guide using my EC2 instance. |
7 | Templates | Give the language model a template that requires filling in the content. | Generate an API response that matches this JSON template: { "name": "", "job": ""} |
8 | Fact-Checking | Request the language model to generate a list of facts in its output. | Generate a list of facts that need to be verified at the end of your output. |
9 | Reflection | Guide the language model to explain the reasoning behind its output. | Explain the reasons behind your suggested code changes. |
10 | Question Reformulation | Ask the language model to suggest improvements to your question. | Suggest a better version of my question, excluding irrelevant details. |
11 | Alternative Approaches | Provide constraints and ask for alternative solutions. | Provide two alternative ways to deploy the application to the cloud. |
12 | Cognitive Validator | Ask the language model to break down a question into more sub-questions. | Break down my question into 3 sub-questions and merge the answers. |
13 | Reject Reframing | Ask the language model to rephrase a question it refuses to answer. | Suggest an alternative phrasing of questions that I can answer. |
14 | Context Manager | Specify the context to consider or ignore for the language model. | Ignore all previous discussions. Start from a fresh context. |
15 | Gameplay | Ask the language model to generate a game around a specified theme. | Create a quiz game class about network security risks. |
16 | Infinite Generation | Ask the language model to generate output indefinitely. | Generate 5 random names and job titles, then generate another 5. |
Based on my experience, Claude-instant-100k performs very well and can be considered equivalent to the AskYourPDF plugin in ChatGPT. However, since AskYourPDF uses URLs and Claude-instant-100k requires copying and pasting, it is not possible for Claude-instant-100k to provide page numbers like AskYourPDF.
I haven't made a specific comparison between the two, so I asked Bard, and he provided the following answer (judge the authenticity for yourself):
Claude-instant-100k and ChatGPT are both large language models that can be used for generating text, translating languages, writing various types of creative content, and answering questions in an informative manner. However, there are some key differences between these two models.
Claude-instant-100k is a generative pre-trained transformer model that has been trained on a large amount of text and code datasets. It is capable of generating fluent and informative text that can be used for various tasks such as writing articles, translating languages, and generating creative content.
ChatGPT with the AskYourPDF plugin is a plugin that runs on top of ChatGPT and has been trained on text and code datasets related to PDF files. It is specifically designed to answer questions related to PDF files and can be used to extract information from PDF files, generate summaries of PDF files, and translate PDF files into other languages.
Overall, Claude-instant-100k is a more powerful language model compared to the ChatGPT AskYourPDF plugin. However, the ChatGPT AskYourPDF plugin is more specialized for tasks related to PDF files.