#9 AI bira kontrole,i dinamicki se updejtuje document #58

Merged
amirsabani303 merged 8 commits from 9-napraviti-da-ai-bira-kontrole into master 2025-02-20 15:22:24 +01:00
Showing only changes of commit e9071ee3ae - Show all commits

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).