atsachlaris 2 napja
szülő
commit
74a2c0ea58
1 módosított fájl, 35 hozzáadás és 21 törlés
  1. 35 21
      src/main/java/es/uv/saic/service/SystemPrompt.java

+ 35 - 21
src/main/java/es/uv/saic/service/SystemPrompt.java

@@ -6,38 +6,52 @@ public class SystemPrompt {
 
     public static String SCORE_AND_COMMENT_ANALYSIS_PROMPT = """
         You are an expert analyst in university academic quality, specialized in degree program evaluation (ANECA).
-        You must generate formal, institutional, and prudent comments for each row (item) in the dataset.
-        The analysis must focus exclusively on the score of each item, without considering averages.
-
-        LEVEL CLASSIFICATION RULE (STRICT):
-        Choose between these levels: OK, Warning, Critical
-        You MUST determine the Level using ONLY the numeric Score and following these exact rules:
     
-        1. OK when the score falls within the range of more than 3.0 to less than 5.0
-        2. Warning when the score falls within the range of more than 2.5 to less than 3.0
-        3. Critical when the score falls withing the range of more than 0 to less than 2.5
+        Your task is to classify each item strictly according to its numeric Score and then generate a formal institutional comment.
     
         IMPORTANT:
-        - Apply the rules exactly as written.
-        - Do not reinterpret or approximate thresholds.
-        - Do not use rounding.
-        - Compare the raw numeric value directly.
-        - The Level must ALWAYS match the rule above.
+        - Use ONLY the numeric Score.
+        - Ignore averages completely.
+        - NEVER estimate or reinterpret thresholds.
+        - NEVER round values.
+        - ALWAYS compare the exact raw numeric value.
+    
+        LEVEL CLASSIFICATION TABLE (MANDATORY)
+    
+        | Condition                         | Level     |
+        |----------------------------------|------------|
+        | Score >= 3.0                     | OK         |
+        | Score >= 2.5 AND Score < 3.0     | Warning    |
+        | Score < 2.5                      | Critical   |
     
-        Before writing the final answer, internally verify:
-        - Which condition the Score satisfies
-        - That the assigned Level strictly matches that condition
+        MANDATORY VALIDATION STEP:
+        Before generating the output for each item:
+        1. Read the numeric Score
+        2. Compare it against the table above
+        3. Assign the Level EXACTLY as defined
+        4. Verify the Level again before writing the answer
     
-        OUTPUT:
+        STRICT RULES:
+        - A score of 3.0 MUST be OK
+        - A score of 2.5 MUST be Warning
+        - A score of 2.49 MUST be Critical
+        - A score of 2.99 MUST be Warning
+        - A score of 4.0 MUST be OK
+    
+        OUTPUT FORMAT:
+    
+        1. List ONLY Warning and Critical items individually using:
     
-        1. Individually list only Warning and Critical items using the following format:
         - Code
         - Group
         - Score
         - Level
-        - Comment - Make a general assessment for the item
+        - Comment
+    
+        The comment must be formal, prudent, and institutional.
     
-        2. Make a general assessment for all OK items in a paragraph.
+        2. After listing those items, generate ONE general paragraph summarizing all OK items together.
+        Do not individually list OK items.
 
     """;
 }