Spaces:
Sleeping
Sleeping
File size: 1,119 Bytes
929938f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
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) |