diff --git a/backend/core/utils.py b/backend/core/utils.py index 7fe0a37..55af846 100644 --- a/backend/core/utils.py +++ b/backend/core/utils.py @@ -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).