Prompt engineering is the process of structuring an instruction that can be interpreted and understood by a generative AI model.[1][2] A prompt is natural language text describing the task that an AI should perform.[3]
A prompt for a text-to-text language model can be a query such as "what is Fermat's little theorem?",[4] a command such as "write a poem about leaves falling",[5] or a longer statement including context, instructions,[6] and conversation history. Prompt engineering may involve phrasing a query, specifying a style,[5] providing relevant context[7] or assigning a role to the AI such as "Act as a native French speaker".[8] A prompt may include a few examples for a model to learn from, such as asking the model to complete "maison → house, chat → cat, chien →" (the expected response being dog),[9] an approach called few-shot learning.[10]
When communicating with a text-to-image or a text-to-audio model, a typical prompt is a description of a desired output such as "a high-quality photo of an astronaut riding a horse"[11] or "Lo-fi slow BPM electro chill with organic samples".[12] Prompting a text-to-image model may involve adding, removing, emphasizing and re-ordering words to achieve a desired subject, style,[1] layout, lighting,[13] and aesthetic.
^ abDiab, Mohamad; Herrera, Julian; Chernow, Bob (2022-10-28). "Stable Diffusion Prompt Book" (PDF). Retrieved 2023-08-07. Prompt engineering is the process of structuring words that can be interpreted and understood by a text-to-image model. Think of it as the language you need to speak in order to tell an AI model what to draw.
^Ziegler, Albert; Berryman, John (17 July 2023). "A developer's guide to prompt engineering and LLMs". The GitHub Blog. Prompt engineering is the art of communicating with a generative AI model.
^Radford, Alec; Wu, Jeffrey; Child, Rewon; Luan, David; Amodei, Dario; Sutskever, Ilya (2019). "Language Models are Unsupervised Multitask Learners" (PDF). OpenAI. We demonstrate language models can perform down-stream tasks in a zero-shot setting – without any parameter or architecture modification
^"Introducing ChatGPT". OpenAI Blog. 2022-11-30. Retrieved 2023-08-16. what is the fermat's little theorem
^ abRobinson, Reid (August 3, 2023). "How to write an effective GPT-3 or GPT-4 prompt". Zapier. Retrieved 2023-08-14. "Basic prompt: 'Write a poem about leaves falling.' Better prompt: 'Write a poem in the style of Edgar Allan Poe about leaves falling.'
^Gouws-Stewart, Natasha (June 16, 2023). "The ultimate guide to prompt engineering your GPT-3.5-Turbo model". masterofcode.com.
^Greenberg, J., Laura (31 May 2023). "How to Prime and Prompt ChatGPT for More Reliable Contract Drafting Support". contractnerds.com. Retrieved 24 July 2023.
^"GPT Best Practices". OpenAI. Retrieved 2023-08-16.
^Garg, Shivam; Tsipras, Dimitris; Liang, Percy; Valiant, Gregory (2022). "What Can Transformers Learn In-Context? A Case Study of Simple Function Classes". arXiv:2208.01066 [cs.CL].
^Brown, Tom; Mann, Benjamin; Ryder, Nick; Subbiah, Melanie; Kaplan, Jared D.; Dhariwal, Prafulla; Neelakantan, Arvind (2020). "Language models are few-shot learners". Advances in Neural Information Processing Systems. 33: 1877–1901. arXiv:2005.14165.
^Heaven, Will Douglas (April 6, 2022). "This horse-riding astronaut is a milestone on AI's long road towards understanding". MIT Technology Review. Retrieved 2023-08-14.
^Wiggers, Kyle (2023-06-12). "Meta open sources an AI-powered music generator". TechCrunch. Retrieved 2023-08-15. Next, I gave a more complicated prompt to attempt to throw MusicGen for a loop: "Lo-fi slow BPM electro chill with organic samples."
^"How to Write AI Photoshoot Prompts: A Guide for Better Product Photos". claid.ai. June 12, 2023. Retrieved June 12, 2023.
and 20 Related for: Prompt engineering information
Promptengineering is the process of structuring an instruction that can be interpreted and understood by a generative AI model. A prompt is natural language...
containing PromptPrompt neutron, in nuclear engineeringPrompt criticality This disambiguation page lists articles associated with the title Prompt. If an...
achievable only by (costly) fine-tuning, can be achieved through promptengineering, although limited to the scope of a single conversation (more precisely...
instead of using an NMT system that is trained on parallel text, one can also prompt a generative LLM to translate a text. These models differ from an encoder-decoder...
considered "art" in a human–AI context and collaboration. Some AI art models are prompt-based AI with an inpainting feature to partially regenerate AI art and a...
In nuclear engineering, prompt criticality describes a nuclear fission event in which criticality (the threshold for an exponentially growing nuclear...
threatening or hostile output, either unexpectedly or through intentional promptengineering. The effect reflects a principle that after training an LLM to satisfy...
18223 [cs.CL]. Promptengineering guide from OpenAI Media related to ChatGPT at Wikimedia Commons Official website ChatGPT PromptEngineering for Developers...
In nuclear engineering, a prompt neutron is a neutron immediately emitted (neutron emission) by a nuclear fission event, as opposed to a delayed neutron...
graduate in business economics Retrieval-augmented generation, a promptengineering technique for generative AI All pages with titles beginning with Rag...
professor Jules White both developed a new course specifically for promptengineering generative AI chatbots. Other instructors, such as Ethan Mollick at...
would be impacted by AI technologies by 2019. PromptEngineering, the task of designing and refining prompts (inputs) leading to desired AI-generated responses...
able to generate images from complex descriptions without manual promptengineering and render complex details like hands and text. It was released to...
on experience. Several foundation-related engineering problems, such as the Leaning Tower of Pisa, prompted scientists to begin taking a more scientific-based...
Chaos engineering is the discipline of experimenting on a system in order to build confidence in the system's capability to withstand turbulent conditions...
management. He has also contributed to the developing technology of Promptengineering to apply AI and ChatGPT as one of leading experts in Sustainability...
More engineering failures that occurred the following years also prompted the requirement for engineering geologists to work on large engineering projects...
Brookings Institution, February 2010. Fryer-Biggs, Zachary. head "Price Wars Prompt Firms To Abandon Service Sector." Defense News, 9 September 2012. "Better...