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.
arXiv.org Artificial Intelligence
May-10-2024
- Country:
- Europe > Germany (0.04)
- North America
- United States
- New York > New York County
- New York City (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Massachusetts > Suffolk County
- Boston (0.04)
- California > Los Angeles County
- Los Angeles (0.14)
- New York > New York County
- Canada > Ontario
- Toronto (0.04)
- United States
- Genre:
- Research Report (0.50)
- Technology: