Spaces:
Running
Running
Commit
•
ef9a383
1
Parent(s):
071db3b
removed bugs
Browse files
llm.py
CHANGED
@@ -34,7 +34,8 @@ def check_response_given(s):
|
|
34 |
return False
|
35 |
|
36 |
def check_prima_facie_rebutted(s):
|
37 |
-
pattern = r'Prima Facie refuted:\s*[,.!\s]*true'
|
|
|
38 |
if re.search(pattern, s, re.IGNORECASE | re.DOTALL):
|
39 |
return True
|
40 |
else:
|
|
|
34 |
return False
|
35 |
|
36 |
def check_prima_facie_rebutted(s):
|
37 |
+
# pattern = r'Prima Facie refuted:\s*[,.!\s]*true'
|
38 |
+
pattern = r'Prima Facie refuted:\s*[,.!\s]*(?:true|yes)'
|
39 |
if re.search(pattern, s, re.IGNORECASE | re.DOTALL):
|
40 |
return True
|
41 |
else:
|
mock_constants_dir/uae_law_mock_constants.py
CHANGED
@@ -27,7 +27,7 @@ Evidence indicated in the claim and other documents:
|
|
27 |
stage_2_and_2_2_response = """
|
28 |
Response validity: True
|
29 |
Claim needs rechecking: False
|
30 |
-
Prima Facie refuted:
|
31 |
Circumstance:
|
32 |
- Principal Circumstance: Damage to the 10 kV cable line during excavation works.
|
33 |
- Derivative Circumstance: Execution of emergency repair works by Magistral LLC.
|
|
|
27 |
stage_2_and_2_2_response = """
|
28 |
Response validity: True
|
29 |
Claim needs rechecking: False
|
30 |
+
Prima Facie refuted:Yes
|
31 |
Circumstance:
|
32 |
- Principal Circumstance: Damage to the 10 kV cable line during excavation works.
|
33 |
- Derivative Circumstance: Execution of emergency repair works by Magistral LLC.
|
prompts/uae_law_stage_prompts.py
CHANGED
@@ -600,10 +600,10 @@ The court, having studied the case materials, heard the parties, and examined th
|
|
600 |
Based on the above and guided by Articles [numbers] of the UAE Civil Code, Articles [numbers] of other applicable laws or regulations, the court
|
601 |
|
602 |
## DECIDES:
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
|
608 |
**Note:** This judgement is not legally binding or enforceable and is part of an experimental process conducted by JudgeAI Court.
|
609 |
|
|
|
600 |
Based on the above and guided by Articles [numbers] of the UAE Civil Code, Articles [numbers] of other applicable laws or regulations, the court
|
601 |
|
602 |
## DECIDES:
|
603 |
+
4. **To satisfy the claims of the Plaintiff.**
|
604 |
+
5. To recover from the Defendant in favor of the Plaintiff the amount of 100,000 AED, representing compensation for damages from violations.
|
605 |
+
6. To deny the remaining claims.
|
606 |
+
7. The Defendant is also ordered to pay the Plaintiff's legal costs and attorney fees.
|
607 |
|
608 |
**Note:** This judgement is not legally binding or enforceable and is part of an experimental process conducted by JudgeAI Court.
|
609 |
|