Advanced use of ChatGPT, application skills you must know

In view of the huge capabilities of ChatGPT, it is imperative to learn ChatGPT usage skills in depth. As a large language model (LLM) such as ChatGPT, there is also a new engineering field: prompt engineering (Prompt Engineering).

Prompt Engineering (Prompt Engineering) is a relatively new discipline, which focuses on the development and optimization of prompt words, and helps users use Large Language Model (Large Language Model, LLM) in various scenarios and research fields. Having skills related to hint engineering will help users better understand the capabilities and limitations of large language models.

Cue engineering is not just about designing and developing cue words. It encompasses various skills and techniques for interacting with and developing large language models. Hint engineering plays an important role in realizing the interaction and docking with large language models, as well as the ability to understand large language models. Users can improve the security of large language models through hint engineering, and can also empower large language models, such as using professional domain knowledge and external tools to enhance the capabilities of large language models.

Translated into vernacular: Technology developers have more abilities to mine AI (code writing, API calls, etc.), if ordinary people also master these skills, they can dig out greater ChatGPT capabilities than ordinary users.

prompt word

  • text summary

  • information extraction

  • question and answer

  • Text Categorization

  • dialogue

  • code generation

  • reasoning

Here are a few special prompts to choose, and focus on talking about them.

Information extraction , using this command allows you to find suitable targets from large blocks of text

Reference instruction: instruction+###content###

b29720b959d1b83c0e6d6cef013ea9b9.pngText classification , classify according to different categories, or make classification output based on certain sample references.

Reference instruction 1: For which aspects of the content, classify +%%%content%%%

Reference instruction 2: instruction

5a22f1ebe1cd4c76cb1f211b057664d7.png

Reasoning , currently the reasoning task is the most challenging for large language models. The most exciting thing about inference tasks is that it can lead to various complex applications born from large language models. The big language model is good at word processing, and the logic of mathematical reasoning is indeed a bit difficult, but it can be handled in general.

b38bafd150763ae6da8c53ad2c3be012.pngHere's a slightly more complicated command:0b2ed394aa30aed9314e399a4863801e.png

command prompt

  • Zero Sample Prompt

  • Few Sample Hints

  • Chain of Things (CoT) Thinking Prompts

  • self-consistency prompt

  • generate data tips

With the instructions, sometimes it is necessary to add some style hints, so that ChatGPT can work more accurately.

1. Zero style hints, work without any hintsae46adfc98aa462348c465fc74191440.png

2. Small sample tips, provide some cases for ChatGPT to learn, and then output content based on the examples

33aab8e2f709f3434c31f56244476a98.png3. Chain-of-Thought Prompting, the full text is called: Chain-of-Thought Prompting , suggesting that ChatGPT realizes complex reasoning ability through intermediate reasoning steps. You can combine this with few-shot hinting to get better results for more complex tasks of reasoning before answering. 1994a9c76e3a8309e6d0d165054e9efb.pngChain thinking is the key skill. For some slightly complicated questions, ChatGPT’s performance is not satisfactory. You need to instruct ChatGPT to follow certain steps to solve the questions step by step, and the final answer is often correct. 9c79f4c49cdbb931f8f155c092f5bb23.pngIs it a bit of nonsense, let's adjust the instructions, and the answer at this time is correct. 79adf3f4d120ca4203c3e70ba4daa2fb.png4. Self-consistency hints, the idea is to sample multiple different inference paths via few-shot CoT and use the generated results to select the most consistent answer. This helps improve the performance of CoT hints in tasks involving arithmetic and commonsense reasoning. 84993522b77f9d3ead2360c0f40a8577.png(It’s also nonsense, sometimes mistakes will be made in one step, let’s let ChatGPT take it slowly)

9d2fbb773b493d375e93e8c4a5e21b9c.png5. Generate data prompts, generate data in a specified format according to certain data prompts, instead of being freely played by ChatGPT. d2b76639550d28f2185fed526fde2276.pngTo sum up, it is a relatively common technique for advanced use of ChatGPT. There are also some more advanced techniques that may involve some coding skills.

ed56fb6b4c902e8a82ae7e62d392133d.png


Further reading:

Guess you like

Origin blog.csdn.net/hero272285642/article/details/131078805