.format_prompt() is for implementing the features parameter into the cons_template. So for example features='Lightweight, Responsive' , by using cons_template.format_prompt(features=Lightweight, Responsive') it'll return "Given these features: Lightweight, Responsive, list the cons of these features".