Structuring and Optimization of Personalized Context for Large Language Models in Software Developer’s Support
摘要
This study introduces Adaptive Few-Shot Augmentation to optimize input prompts for large language models (LLMs) in software development. Structured prompts incorporating developer specialization, test cases, response format, and task complexity significantly improve code correctness and execution reliability, as demonstrated using HumanEval and CoNaLa benchmarks assessed via CodeBLEU, pass@1, and pass@5 metrics. The method effectively bridges developer expectations and model-generated outputs, enhancing AI-assisted software engineering. Future research will explore automated feature selection and reinforcement learning for further optimization.