Automated Prompt Engineering for Cost-Effective Code Generation Using Evolutionary Algorithm
20 Aug · Hamed Taherkhani, Melika Sepindband, Hung Viet Pham +2 · arXiv:2408.11198
Large Language Models have seen increasing use in various software development tasks, especially in code generation. The most advanced recent methods attempt to incorporate feedback from code execution into prompts to help guide LLMs in generating correct code in an iterative process. While effective, these methods could be costly due to numerous interactions with the LLM and extensive token usage. To address this…