[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-721448-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-721448-en":130,"doc-similar-721448":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","impromptu-a-framework-for-model-driven-prompt-engineering","Impromptu - a framework for model-driven prompt engineering","","Generative artificial intelligence systems rely on natural-language prompts to synthesize text, source code, and images, and the quality of the prompt’s content and structure strongly affects output quality. The paper presents Impromptu, a model-driven engineering framework for creating, managing, and reusing prompts. Impromptu introduces a domain-specific language to define multimodal prompts modularly and tool-independently, adding versioning, prompt chaining, and multi-language support. It further provides tool support to adapt, execute, and validate prompt-driven responses via a Langium-based Visual Studio Code plugin.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/impromptu-a-framework-for-model-driven-prompt-engineering/721448/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/impromptu-a-framework-for-model-driven-prompt-engineering/721448.png","ImageObject",300,407,{"name":42,"@type":43},"angelica ♡","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What problem does the paper address in prompt engineering?","Question",{"text":62,"@type":63},"It addresses that prompt quality is highly dependent on the structure of the input prompt and that prompt engineering often becomes platform-specific, so prompts may perform poorly across systems or versions.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What is Impromptu in the proposed framework?",{"text":67,"@type":63},"Impromptu is a model-driven engineering framework and a domain-specific language (DSL) for defining, managing, and reusing prompts for generative AI.",{"name":69,"@type":60,"acceptedAnswer":70},"How does Impromptu support prompt portability and quality control?",{"text":71,"@type":63},"It provides features such as versioning and prompt chaining, tool support to adapt prompts for specific generative AI systems, execute those prompts, and validate the quality of generated responses. It is implemented as a Langium-based Visual Studio Code plugin.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},721448,1795044954,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":127,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":143,"preview_page_count":33,"preview_urls":144},4398072663683,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Software and Systems Modeling (2025) 24:1627–1645  \n[https://doi.org/10.1007/s10270-024-01235-4](https://doi.org/10.1007/s10270-024-01235-4)  \nImpromptu: a framework for model-driven prompt engineering Sergio Morales1 · Robert Clarisó1 · Jordi Cabot2,3  \nReceived: 30 April 2024 / Revised: 2 September 2024 / Accepted: 29 October 2024 / Published online: 15 January 2025 © The Author(s) 2024  \nAbstract  \nGenerative artiﬁcial intelligence (AI) systems are capable of synthesizing complex artifacts such as text, source code or images according to the instructions provided in a natural language prompt. The quality of the input prompt, in terms of both content and structure, has a large impact on the quality of the output. This has given rise to prompt engineering, the process of designing natural language prompts to best take advantage of the capabilities of generative AI systems. This paper describes Impromptu, a model-driven engineering framework to support the creation, management and reuse of prompts for generative AI. Impromptu offers a domain-speciﬁc language (DSL) to deﬁne multimodal prompts in a modular and tool-independent way. The language offers additional features such as versioning, prompt chaining and multi-language support. Moreover, it provides tool support to adapt prompts for speciﬁc generative AI systems, execute those prompts on a generative AI system and validate the quality of the response that is generated. Impromptu is available as a Langium-based Visual Studio Code plugin.  \nKeywords Prompt engineering · Model-driven engineering · Domain-speciﬁc language · Generative AI · Large language models  \n1 Introduction  \nGenerative artiﬁcial intelligence (AI) is currently attracting a lot of attention as a potentially disruptive technology [1– 3] . Generative AI aims to automatically construct complex artifacts that comply with a set of input requirements. The format of the produced output varies: natural language text (ChatGPT, Bard, Bing Chat, Claude), source code snippets (Copilot, Ghostwriter, Tabnine), music (MuseNet, MusicLM), images (DALL-E, Midjourney, Stable Diffusion), etc. Regarding the input, many generative AI systems are based  \nCommunicated by G. Taentzer, A. Cicchetti, A. Pierantonio, and T. Kühne.  \nB Robert Clarisó [rclariso@uoc.edu](rclariso@uoc.edu)  \nSergio Morales  \n[smoralesg@uoc.edu](smoralesg@uoc.edu)  \nJordi Cabot  \n[jordi.cabot@list.lu](jordi.cabot@list.lu)  \n1 Universitat Oberta de Catalunya, Barcelona, Spain  \n2 Luxembourg Institute of Science and Technology, Esch-sur-Alzette, Luxembourg  \n3 University of Luxembourg, Esch-sur-Alzette, Luxembourg  \non a prompt, a natural language description of the goals of the generated artifact [4, 5] . More recent systems also accept multimodal inputs, e.g., an image in addition to a prompt. In these systems, the extra inputs may provide additional information or be used as seeds or examples to guide the generation process. Nevertheless, the textual prompt continues to be the core input mechanism.  \nSeveral reasons motivate the growing interest in generative AI. First, the availability of large datasets and computing power to train generative systems enables them tobe increasingly more effective. Furthermore, using natural language asthe input format improves usability and is ﬂexible enough to support numerous application scenarios.  \nNevertheless, a shortcoming of generative AI systems is that the quality of the output depends on the structure of the input prompt [6–12] . As a result, the AI community has proposed a set of strategies, best practices, guidelines and supporting tools for creating good prompts. The process that involves crafting, evaluating and ﬁne-tuning prompts is called prompt engineering.  \nA challenge of prompt engineering is the fact that it is essentially a platform-speciﬁc process. Prompts that perform well in a particular system may under-perform in other systems [13, 14], or even in different versions of the same system. For inst","cbCail3Fl0VoAVAm","https://ap.wps.com/l/cbCail3Fl0VoAVAm","pdf",1274006,"English","# Abstract\n# Keywords\n# 1 Introduction\n## Generative AI and the role of prompts\n## Challenges: platform dependence and evolving systems","[{\"question\":\"What problem does the paper address in prompt engineering?\",\"answer\":\"It addresses that prompt quality is highly dependent on the structure of the input prompt and that prompt engineering often becomes platform-specific, so prompts may perform poorly across systems or versions.\"},{\"question\":\"What is Impromptu in the proposed framework?\",\"answer\":\"Impromptu is a model-driven engineering framework and a domain-specific language (DSL) for defining, managing, and reusing prompts for generative AI.\"},{\"question\":\"How does Impromptu support prompt portability and quality control?\",\"answer\":\"It provides features such as versioning and prompt chaining, tool support to adapt prompts for specific generative AI systems, execute those prompts, and validate the quality of generated responses. It is implemented as a Langium-based Visual Studio Code plugin.\"}]","Impromptu - a framework for model-driven prompt engineering | PDF",48,[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a05db7b2209d910f105760150585c4ed.webp",983,1305,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1b3888f715e6dfa40b39a52b10657615.webp",982,1304,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4e7aaf4c289733100122cad60f622289.webp",981,1303,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/8de586870037e7dc64227e0aa7587a11.webp",980,1301,{"list":162,"token":11},[163,170,177,183,190,196,202,208,215,221],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":29,"create_tm":169},327685,"The Role of Prompt Language and Translation-Theory-Driven Prompts in Large Language Models - A Case Study on Spanish–Chinese Journalistic Translation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909340451/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=rMT7Uo9bBQkQ3%2BOuvMXzWDn8ImQ%3D","the-role-of-prompt-language-and-translation-theory-driven-prompts-in-large-language-models-a-case-study-on-spanishchinese-journalistic-translation",18,1789977808,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},327372,"Rethinking Complexity Metrics for LLM-Integrated Applications - Beyond Source Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229908484239/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=KEOoFSAoVKOCyzqZEdwp7nJN1FM%3D","rethinking-complexity-metrics-for-llm-integrated-applications-beyond-source-code",15,1789977091,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":33,"category_name":29,"create_tm":182},639351,"Using an LLM to Help With Code Understanding - Promising In-IDE Prompt-less Interaction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970379863/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=VGMSDTLJmsZoSCNMyzec9uP9g%2Fs%3D","using-an-llm-to-help-with-code-understanding-promising-in-ide-prompt-less-interaction",1792703238,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":29,"create_tm":189},327125,"Natural Language Tools - A Natural Language Approach to Tool Calling In Large Language Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909304025/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=76h3o4dt5cwzQjem60yZdgXHiSE%3D","natural-language-tools-a-natural-language-approach-to-tool-calling-in-large-language-agents",12,1789976482,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":127,"category_name":29,"create_tm":195},273471,"CAPO - Constraint-Aware Prompt Optimization for LLM Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899940125/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=l5A4GD6AxYzpcIE8dfAZaSpb09g%3D","capo-constraint-aware-prompt-optimization-for-llm-agents",1789471580,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":26,"category_name":29,"create_tm":201},687627,"Prompt-Driven Development with Claude Code - Building a Complete TUI Framework for the Ring - v1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262984/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=S6YZAkWnA14AB4IlMKE9wY7xdjk%3D","prompt-driven-development-with-claude-code-building-a-complete-tui-framework-for-the-ring-v1",1794084339,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":127,"category_name":29,"create_tm":207},327411,"Prompt Coverage Adequacy","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909322254/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=NPB0Ka2JbNpzwcjp7SR66PSkbGQ%3D","prompt-coverage-adequacy",1789977150,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":29,"create_tm":214},84588,"AdaBoosting Text Prompts for Vision-Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809188239/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=3JECugNL24Jf2HIdozjx2BT9TYc%3D","adaboosting-text-prompts-for-vision-language-models",32,1784196962,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":101,"category_name":29,"create_tm":220},655718,"Optimizing the process of ER diagram creation with PlantUML","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288428/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=kakAw%2BXOgRXlINLLer0PLUhVpmM%3D","optimizing-the-process-of-er-diagram-creation-with-plantuml",1792963464,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":30,"category_name":29,"create_tm":226},733007,"On the Maintenance and Co-evolution of Agent Plugins - An Empirical Study of Claude Code Plugin Marketplaces","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031415331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=3DAQhRZQohvrkHNGLM%2B8c1ojpZ4%3D","on-the-maintenance-and-co-evolution-of-agent-plugins-an-empirical-study-of-claude-code-plugin-marketplaces",1795383308]