{"id":119730,"date":"2023-07-08T16:48:16","date_gmt":"2023-07-08T16:48:16","guid":{"rendered":"https:\/\/dripp.zone\/news\/what-is-prompt-engineering-and-how-does-it-work-crypto-news\/"},"modified":"2023-07-08T16:48:19","modified_gmt":"2023-07-08T16:48:19","slug":"what-is-prompt-engineering-and-how-does-it-work-crypto-news","status":"publish","type":"post","link":"https:\/\/dripp.zone\/news\/what-is-prompt-engineering-and-how-does-it-work-crypto-news\/","title":{"rendered":"What is prompt engineering, and how does it work?\n &#8211; Crypto News"},"content":{"rendered":"<div data-v-7c7881ea=\"\">\n<p>Prompt engineering has become a powerful method for optimizing language models in <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/news\/5-natural-language-processing-libraries-to-use\">natural language processing (NLP)<\/a>,  It entails creating efficient prompts, often referred to as instructions or questions, to direct the behavior and output of AI models.<\/p>\n<p>Due to prompt engineering&#8217;s ability to enhance the functionality and management of language models, it has attracted a lot of attention.  This article will delve into the concept of prompt engineering, its significance and how it works.<\/p>\n<h2>Understanding prompt engineering<\/h2>\n<p>Prompt engineering involves creating precise and informative questions or instructions that allow users to acquire desired outputs from AI models.  These prompts serve as precise inputs that direct language modeling behavior and text generation.  Users can modify and control the output of AI models by carefully structuring prompts, which increases their usefulness and dependability.<\/p>\n<p><strong><em>Related: <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/news\/how-to-write-effective-chatgpt-prompts-for-better-results\">How to write effective ChatGPT prompts for better results<\/a><\/em><\/strong><\/p>\n<h2>History of prompt engineering<\/h2>\n<p>In response to the complexity and expanding capabilities of language models, prompt engineering has changed over time.  Although quick engineering may not have a long history, its foundations can be seen in early NLP research and the creation of AI language models.  Here&#8217;s a brief overview of the history of prompt engineering:<\/p>\n<h3>Pre-transformer era (Before 2017)<\/h3>\n<p>Prompt engineering was less common before the development of transformer-based models like <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/news\/open-ai-prepares-release-open-source-model\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/news\/open-ai-prepares-release-open-source-model\">OpenAI&#8217;s generative pre-trained transformer (GPT)<\/a>,  Contextual knowledge and adaptability are lacking in earlier language models like recurrent neural networks (RNNs) and <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/explained\/what-are-convolutional-neural-networks#:~:text=Convolutional%20neural%20networks%20(CNNs)%20are,object%20detection%20and%20image%20segmentation.\">convolutional neural networks (CNNs)<\/a>which restricts the potential for prompt engineering.<\/p>\n<h3>Pre-training and the emergence of transformers (2017)<\/h3>\n<p>The introduction of transformers, specifically with the &#8220;Attention Is All You Need&#8221; paper by Vaswani et al.  in 2017, <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/arxiv.org\/abs\/1706.03762\">revolutionized<\/a> the field of NLP.  Transformers made it possible to pre-train language models on a broad scale and teach them how to represent words and sentences in context.  However, throughout this time, prompt engineering was still a relatively unexplored technique.<\/p>\n<h3>Fine-tuning and the rise of GPT (2018)<\/h3>\n<p>A major turning point for rapid engineering occurred with the introduction of OpenAI&#8217;s GPT models.  GPT models demonstrated the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/learn\/training-vs-testing-data-in-machine-learning\">effectiveness of pre-training<\/a> and fine-tuning on particular downstream tasks.  For a variety of purposes, researchers and practitioners have started using quick engineering techniques to direct the behavior and output of GPT models.<\/p>\n<h3>Advancements in prompt engineering techniques (2018\u2013present)<\/h3>\n<p>As the understanding of prompt engineering grew, researchers began experimenting with different approaches and strategies.  This included designing context-rich prompts, using rule-based templates, incorporating system or user instructions, and exploring techniques like prefix tuning.  The goal was to enhance control, mitigate biases and improve the overall performance of language models.<\/p>\n<h3>Community contributions and exploration (2018\u2013present)<\/h3>\n<p>As prompt engineering gained popularity among NLP experts, academics and programmers started to exchange ideas, lessons learned and best practices.  Online discussion boards, academic publications, and <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/news\/the-importance-of-open-source-in-computer-science-and-software-development\">open-source<\/a> Libraries contributed significantly to developing prompt engineering methods.<\/p>\n<h3>Ongoing research and future directions (present and beyond)<\/h3>\n<p>Prompt engineering continues to be an active area of \u200b\u200bresearch and development.  Researchers are exploring ways to make prompt engineering more effective, interpretable and user-friendly.  Techniques like rule-based rewards, reward models and human-in-the-loop approaches are being investigated to refine prompt engineering strategies.<\/p>\n<h2>Significance of prompt engineering<\/h2>\n<p>Prompt engineering is essential for improving the usability and interpretability of AI systems.  It has a number of benefits, including:<\/p>\n<h3>Improved control<\/h3>\n<p>Users can direct the language model to generate desired responses by giving clear instructions through prompts.  This degree of oversight can aid in ensuring that AI models provide results that comply with predetermined standards or requirements.<\/p>\n<h3>Reducing bias in AI systems<\/h3>\n<p>Prompt engineering can be used as a tool to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/explained\/ethical-considerations-in-ai-development-and-deployment\">reduce bias in AI systems<\/a>,  Biases in generated text can be found and reduced by carefully designing the prompts, leading to more just and equal results.<\/p>\n<h3>Modifying model behavior<\/h3>\n<p>Language models can be modified to display desired behaviors using prompt engineering.  As a result, AI systems can become experts in particular tasks or domains, which enhances their accuracy and dependability in particular use cases.<\/p>\n<p><strong><em>Related: <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/news\/use-chat-gpt-like-a-pro\">How to use ChatGPT like a pro<\/a><\/em><\/strong><\/p>\n<h2>How prompt engineering works<\/h2>\n<p>Prompt engineering uses a methodical process to create powerful prompts.  Here are some crucial actions:<\/p>\n<blockquote class=\"twitter-tweet\">\n<p lang=\"en\" dir=\"ltr\">GPT-4 General Prompting Tips <\/p>\n<p>The following tips will help give you a competitive advantage with the latest version of ChatGPT: <\/p>\n<p>\u2192 Capture Your Writing Style<br \/>Feed GPT a few samples of your writing and ask it to create a style guide for future outputs. <\/p>\n<p>Example prompt:\u2026 <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/t.co\/JWYYLV4ZLS\">pic.twitter.com\/JWYYLV4ZLS<\/a><\/p>\n<p>\u2014 Chase Curtis (@realchasecurtis) <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/twitter.com\/realchasecurtis\/status\/1642516833382068227?ref_src=twsrc%5Etfw\">April 2, 2023<\/a><\/p><\/blockquote>\n<h3>Specify the task<\/h3>\n<p>Establish the precise aim or objective you want the language model to achieve. <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cointelegraph.com\/news\/5-real-world-applications-of-natural-language-processing-nlp\">Any NLP task<\/a>including text completion, translation and summarization, may be involved.<\/p>\n<h3>Identify the inputs and outputs<\/h3>\n<p>Clearly define the inputs required by the language model and the desired outputs you expect from the system.<\/p>\n<h3>Create informative prompts<\/h3>\n<p>Create prompts that clearly communicate the expected behavior to the model.  These questions should be clear, brief and appropriate for the given purpose.  Finding the best prompts may require trial and error and revision.<\/p>\n<h3>Iterate and evaluate<\/h3>\n<p>Put the created prompts to the test by feeding them into the language model and evaluating the results.  Review the results, look for flaws and tweak the instructions to boost performance.<\/p>\n<h3>Calibration and fine-tuning<\/h3>\n<p>Take into account the evaluation&#8217;s findings when calibrating and fine-tuning the prompts.  To obtain the required model behavior, and ensure that it is in line with the intended job and requirements, this procedure entails making minor adjustments.<\/p>\n<p><template data-name=\"subscription_form\" data-type=\"consulting_newsletter\"\/><\/div>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prompt engineering has become a powerful method for optimizing language models in natural language processing (NLP), It entails creating efficient prompts, often referred to as instructions or questions, to direct the behavior and output of AI models. Due to prompt engineering&#8217;s ability to enhance the functionality and management of language models, it has attracted a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":119731,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[235,203,210,234,231,232,237,238,236,233],"class_list":["post-119730","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blockchain","tag-bitcoin","tag-crypto-currency","tag-elon-musk","tag-ethereum","tag-hyperledger","tag-ibm","tag-mining","tag-nodes","tag-spacex","tag-tesla"],"_links":{"self":[{"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/posts\/119730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/comments?post=119730"}],"version-history":[{"count":1,"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/posts\/119730\/revisions"}],"predecessor-version":[{"id":119732,"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/posts\/119730\/revisions\/119732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/media\/119731"}],"wp:attachment":[{"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/media?parent=119730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/categories?post=119730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dripp.zone\/news\/wp-json\/wp\/v2\/tags?post=119730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}