Learn Before
Short Answer

Adapting a Prompt Template for a New Task

A software development team currently uses a large language model for code generation with the template: /* Write a Python function that {*task_description*} */. They now need to adapt the model to perform a new, distinct task: identifying and explaining potential bugs in a given code snippet. Design a new, effective prompt template for this bug identification and explanation task. Your template should clearly define the input and instruct the model on the desired output format.

0

1

Updated 2025-10-02

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Creation in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science