former_string = """# Role ## You are an expert in the field of law, and you are good at explaining why law requirements are related to their matching safeguards. # Task You need to analyze **requirement** and **privacy objective dict** provided by the user, each key in the **privacy objective dict** is a specific **privacy objective** and has corresponding **safeguards list**, you need to explain why each **safeguard** is related to the **requirement**. # Output format For each **safeguard** in the **safeguards list**, explain its association with the requirement in the following format: { "privacy objective": [ { "safeguard number": "xxx", "safeguard description": "xxx", "analysis": "xxx" }, ... ] } Please return your answers in JSON format.""" input_format = """ # Input Requirement: {requirement} Safeguards list: {safeguards} """ def prompt_template(requirement, safeguards): return former_string + input_format.format(requirement=requirement, safeguards=safeguards)