[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-721443-105":59,"doc-detail-721443-en":130,"doc-similar-721443":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","prompt-engineering-an-overview","Prompt engineering - An overview","","Prompt engineering is the process of structuring natural-language instructions so generative AI models can interpret tasks and produce desired outputs. It covers designing prompts for text-to-text, text-to-image, and text-to-audio systems, including adding context, specifying roles, and using examples through few-shot learning. The overview also explains in-context learning as a temporary meta-learning behavior in large language models and describes related methods such as chain-of-thought prompting and other prompting techniques.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/prompt-engineering-an-overview/721443/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/prompt-engineering-an-overview/721443.png","ImageObject",300,407,{"name":92,"@type":93},"SALUTone","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-18",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is prompt engineering and what does a prompt contain?","Question",{"text":112,"@type":113},"Prompt engineering structures natural language so a generative AI model can understand and perform a task. A prompt can include instructions, context, role assignments, and conversation history.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does in-context learning relate to prompt engineering?",{"text":117,"@type":113},"In-context learning enables the model to temporarily learn from prompts. It is described as an emergent ability of large language models and provides task-specific behavior without permanent training.",{"name":119,"@type":110,"acceptedAnswer":120},"What is chain-of-thought prompting and why is it useful?",{"text":121,"@type":113},"Chain-of-thought prompting makes the model solve a problem through intermediate reasoning steps before producing a final answer. It improves performance on multi-step reasoning tasks such as arithmetic and commonsense reasoning.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},721443,1795044863,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},5909897206756,"https://ap-avatar.wpscdn.com/avatar/5600152dbe4a7e99502?x-image-process=image/resize,m_fixed,w_180,h_180&k=1792654152478566863","Prompt engineering  \n\n| Prompt engineering is the process of structuring text 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]\u003Cbr>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]\u003Cbr>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.\u003Cbr>In-context learning |\n| --- |\n| Prompt engineering is enabled by in-context learning, defined as a model's ability to temporarily learn from prompts. The ability for in-context learning is an emergent ability[14] of large language models. In-context learning itself is an emergent property of model scale, meaning breaks[15] in downstream scaling laws occur such that its efficacy increases at a different rate in larger models than in smaller models. [16][17]\u003Cbr>In contrast to training and fine tuning for each specific task, which are not temporary, what has been learnt during in-context learning is of a temporary nature. It does not carry the temporary contexts or biases, except the ones already present in the (pre)training dataset, from one conversation to the other. [18] This result of \"mesaoptimization\" [19][20] within transformer layers, is a form of meta-learning or \"learning to learn\".  [21]\u003Cbr>History |\n| In 2021, researchers finetuned one generatively pretrained model (T0) on performing 12 NLP tasks (using 62 datasets, as each task can have multiple datasets) that showed good performance on new tasks, surpassing models trained directly on just performing one task (without pretraining) . To solve a task, T0 is given the task in a structured prompt, for example If {{premise}} is true, is it also true that {{hypothesis}}?||| {{[entailed}}.](entailed}}. is)[ is](entailed}}. is) the prompt used for making T0 solve entailment. [22]\u003Cbr>A repository for prompts reported that over 2,000 public prompts for around 170 datasets were available in February 2022. [23]\u003Cbr>In 2022 the chain-of-thought prompting technique was proposed by Google researchers.  [17][24] In 2023 several text-to-text and text-to-image prompt databases were publicly available. [25][26]\u003Cbr>Text-to-text |\n\nChain-of-thought  \nChain-of-thought (CoT) prompting is a technique that allows large language models (LLMs) to solve a problem as a series of intermediate steps[27] before giving a final answer. Chain-of-thought prompting improves reasoning ability by inducing the model to answer a multi-step problem with steps of reasoning that mimic a train of thought. [28][17][29] It allows large language models to overcome difficulties with some reasoning tasks that require logical thinking and multiple steps to solve, such as arithmetic or commonsense reasoning questions. [30][31][32]  \nFor example, given the question \"Q: The cafeteria had 23 apples. If they used 20 to make lunch and bought 6 more, how many apples do they have?\", a CoT prompt might induce the LLM to answer \"A: The cafeteria had 23 apples originally. They used 20 to make lunch. So they had 23-20 = 3. They bought 6 more ","cbCaifri7kty2TRM","https://ap.wps.com/l/cbCaifri7kty2TRM","pdf",1386124,14,"English","# Prompt engineering\n# In-context learning\n# History\n# Chain-of-thought prompting\n# Other techniques","[{\"question\":\"What is prompt engineering and what does a prompt contain?\",\"answer\":\"Prompt engineering structures natural language so a generative AI model can understand and perform a task. A prompt can include instructions, context, role assignments, and conversation history.\"},{\"question\":\"How does in-context learning relate to prompt engineering?\",\"answer\":\"In-context learning enables the model to temporarily learn from prompts. It is described as an emergent ability of large language models and provides task-specific behavior without permanent training.\"},{\"question\":\"What is chain-of-thought prompting and why is it useful?\",\"answer\":\"Chain-of-thought prompting makes the model solve a problem through intermediate reasoning steps before producing a final answer. It improves performance on multi-step reasoning tasks such as arithmetic and commonsense reasoning.\"}]","Prompt engineering - An overview | PDF",35,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/085e66ece83601e9cc1a84c1fdf05da3.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f0fde3bca46f9912e50b2e910b45e408.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/3e0ad97c00dc41e7c4040550f5679a12.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/856dd75d722b1896adef7aaf92c79229.webp",980,1268,{"list":163,"token":66},[164,170,177,183,189,195,201,207,213,220],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":34,"category_name":30,"create_tm":169},672931,"Prompt Engineering - v4 - September 2024","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990223142/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=JImxIYeOByOmic%2F6uY19PtYKuiY%3D","prompt-engineering-v4-september-2024",1793615330,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":30,"create_tm":176},692429,"Prompt Engineering - A Guide to Effective Prompting for LLMs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003802725/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=FRKqyhfjG864xaw%2Bxg2HeVscPQQ%3D","prompt-engineering-a-guide-to-effective-prompting-for-llms",11,1794207678,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":34,"category_name":30,"create_tm":182},672936,"THE ULTIMATE PROMPT ENGINEERING GUIDE - Master the Language of Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229989932247/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=pQtwJ2BJEI5IymRRyvuEt0DXFWg%3D","the-ultimate-prompt-engineering-guide-master-the-language-of-large-language-models",1793615343,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":24,"category_name":30,"create_tm":188},703295,"Prompt engineering best practices for LLMs on Amazon Bedrock","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013546813/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=uU4qFsl%2BoOngZpZNYp9InOI9a0U%3D","prompt-engineering-best-practices-for-llms-on-amazon-bedrock",1794567308,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":46,"category_name":30,"create_tm":194},119731,"From Human Days to Machine Seconds: Automatically Answering and Generating Machine Learning Final Exams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835149530/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=VsJdUheuZBef6Dm0uIKSVoQzDK8%3D","from-human-days-to-machine-seconds-automatically-answering-and-generating-machine-learning-final-exams",1785725998,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":34,"category_name":30,"create_tm":200},682228,"KARP Begineer Guide To Ai Prompt - Understanding AI Prompt Engineering: A Complete Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998449348/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=5mLsL3CwcTPeqjvFFSjcXgSCamQ%3D","karp-begineer-guide-to-ai-prompt-understanding-ai-prompt-engineering-a-complete-guide",1793963051,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":52,"category_name":30,"create_tm":206},501572,"ALIGNING LANGUAGE MODELS WITH DEMONSTRATED FEEDBACK - - DITTO","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229931051829/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=0jowwHh18kmaPlyFo86VZTRDgWg%3D","aligning-language-models-with-demonstrated-feedback-ditto",1791020812,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":175,"category_name":30,"create_tm":212},692430,"Vortrag Prompt Engineering - From Zero to GenAI Hero","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003313825/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=VrJafJzHbLoThvTDNNgLQ4AQ1XQ%3D","vortrag-prompt-engineering-from-zero-to-genai-hero",1794207679,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":30,"create_tm":219},85320,"Surprisingly Simple and Effective Multi-Domain Graph Foundation Model Through Graph-to-Table Alignment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809300975/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=ax1lr%2F40VxlhsVtEBPb%2FHPaVh9g%3D","surprisingly-simple-and-effective-multi-domain-graph-foundation-model-through-graph-to-table-alignment",28,1784202464,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":39,"category_name":30,"create_tm":225},672932,"Prompt Engineering for AI Product Management","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990223152/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=o9KJVSOGoIIw7VeDGj%2BdZlmnwGo%3D","prompt-engineering-for-ai-product-management",1793615332]