Spaces:
Runtime error
Runtime error
V9.0.4: CRITICAL PROMPT HOTFIX - Anti-Hallucination (Zero Assumptions Rule)
Browse files- deploy_hf +1 -1
- prompts.py +2 -1
deploy_hf
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
Subproject commit
|
|
|
|
| 1 |
+
Subproject commit 15f8fb802fd1a430cc26f3ce16f77518ec608460
|
prompts.py
CHANGED
|
@@ -71,7 +71,8 @@ def _detect_relevant_rules(text: str, category: str = "") -> list:
|
|
| 71 |
|
| 72 |
# V8.6.3: Contextual Logic Guardrails
|
| 73 |
if category == "GEOMETRY":
|
| 74 |
-
rules.append(r"
|
|
|
|
| 75 |
|
| 76 |
if category in ["CALCULUS", "FUNCTION_ANALYSIS", "INVESTIGATION"]:
|
| 77 |
rules.append(r"GRAPH MATCHING PROTOCOL: When asked to select a correct graph from multiple options (I, II, III, IV), you MUST first perform a visual scan: explicitly describe what you see in EACH given graph (e.g., 'Graph I shows asymptotes at... Graph II shows a hole at...'). Only AFTER describing all options, match your mathematical deductions to the correct visual description and select the final answer.")
|
|
|
|
| 71 |
|
| 72 |
# V8.6.3: Contextual Logic Guardrails
|
| 73 |
if category == "GEOMETRY":
|
| 74 |
+
rules.append(r"ZERO ASSUMPTIONS RULE: NEVER assume, guess, or invent ANY geometric property (e.g., 'this segment is a diameter', 'this angle is 90 degrees', 'this triangle is isosceles') unless it is EXPLICITLY WRITTEN in the provided text. You are strictly forbidden from fabricating data or relationships just because the coordinates look convenient. Work ONLY with the exact facts stated in the OCR text and Data Anchor.")
|
| 75 |
+
rules.append(r"CRITICAL GEOMETRY RULE: You MUST strictly adhere to the geometric layout described in the problem text. If your calculation leads to a paradox (e.g., length 0, points colliding, or negative area), YOUR assumption is wrong. Recalculate based strictly on the given explicit constraints. DO NOT change the given equations.")
|
| 76 |
|
| 77 |
if category in ["CALCULUS", "FUNCTION_ANALYSIS", "INVESTIGATION"]:
|
| 78 |
rules.append(r"GRAPH MATCHING PROTOCOL: When asked to select a correct graph from multiple options (I, II, III, IV), you MUST first perform a visual scan: explicitly describe what you see in EACH given graph (e.g., 'Graph I shows asymptotes at... Graph II shows a hole at...'). Only AFTER describing all options, match your mathematical deductions to the correct visual description and select the final answer.")
|