Untitled
unknown
plain_text
22 days ago
888 B
2
Indexable
Never
def res_gen_prompt_no_input(ins, outp): sys_prompt = "You are a helpful, precise but picky assistant for checking the quality of the answer to a given instruction." prompt_template = "[Instruction]\n{ins}\n\n[The Start of Answer]\n{outp}\n\n[The End of Answer]\n\n[System]\n{criteria}\n\n" criteria = "We would like you to answer several questions related to the quality of the answer to the given instruction. \n" + \ "1. Why this answer is not good for the given instruction? Analyse based on the Helpfulness, Relevance, Accuracy and Level of Details. \n" + \ "2. Based on the reason you provided, generate a better answer, new and complete, as detailed as possible, in the format of [Better Answer] your answer [End] \n" prompt = prompt_template.format( ins=ins, outp=outp, criteria=criteria ) return sys_prompt, prompt
Leave a Comment