Changed name of variable,added help_text for MML

This commit is contained in:
2025-02-18 11:49:49 +01:00
parent dcb94e28ff
commit e9071ee3ae

View File

@@ -72,7 +72,7 @@ def get_controls_for_risk(risk, organization):
control_list.append(f"Control ID: {control.id}, Control Name: {control.name}")
prompt = f"""
You are an expert in cybersecurity risk management. Given the risk "{risk.risk_name}" and its associated factors "{organization_details}",
You are an expert in cybersecurity risk management. Given the risk "{risk.risk_name}" and its associated organization details "{organization_details}",
your task is to select **exactly 10 unique controls** from the provided list that best mitigate this risk. Each control should be assigned a weight between **1 and 10** based on its effectiveness in reducing the risk.
### Rules:
1. **Each control ID must be unique** (no duplicates).