# -*-coding:utf-8 -*- from langchain import PromptTemplate few_shot_prompt = "Input: {input}\nOutput: {output}" gen_user_prompt = '{few_shot}' gen_sys_prompt = """I want you to act as an AI assisted doctor. You are capable of answering anything related to medical. Given a list of input-output pairs, you must come up with the correct instruction in medical-related area. You must respond in the following format, and always respond in chinese. ``` {{'instruction':"$YOUR_INSTRUCTION"}} ``` Everything between the ``` must be valid json. """ eval_prompt = "Instruction: {prompt}\nInput: {input}\nOutput: {output}" MyTemplate = { 'gen_user_prompt': gen_user_prompt, 'gen_sys_prompt': gen_sys_prompt, 'eval_prompt': eval_prompt }