Sketch Then Generate: Providing Incremental User Feedback and Guiding LLM Code Generation through Language-Oriented Code Sketches

Zhu-Tian, Chen, Xiong, Zeyu, Yao, Xiaoshuo, Glassman, Elena

arXiv.org Artificial Intelligence 

Existing solutions (e.g., [11, 21, 25, Crafting effective prompts for code generation or editing with Large 30]), while useful, fall short in providing user feedback during the Language Models (LLMs) is not an easy task. Particularly, the absence prompt crafting process. The lack of such feedback can lead to of immediate, stable feedback during prompt crafting hinders uncertainty about the expected output and potential inefficiencies effective interaction, as users are left to mentally imagine possible in the development process, as users are left to mentally imagine outcomes until the code is generated. In response, we introduce possible outcomes until the code is generated [12, 29]. Language-Oriented Code Sketching, an interactive approach that provides However, providing user feedback during prompt crafting presents instant, incremental feedback in the form of code sketches (i.e., significant challenges. Ideally, feedback should not only be instant incomplete code outlines) during prompt crafting. This approach but also evolve incrementally as the user types their prompt, offering converts a prompt into a code sketch by leveraging the inherent clear and understandable intermediate results that progressively linguistic structures within the prompt and applying classic natural guide the LLM towards the final desired code.

Duplicate Docs Excel Report

Title
None found

Similar Docs  Excel Report  more

TitleSimilaritySource
None found