From e9071ee3aed516893347f4c242ef5863235f0039 Mon Sep 17 00:00:00 2001 From: Amir Date: Tue, 18 Feb 2025 11:49:49 +0100 Subject: [PATCH] Changed name of variable,added help_text for MML --- backend/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).