hi friends i have about 180k judgments rullings i want some one to make phyton script for me which will search all folders in main source folder in F:\cho\data\ocr\done\markdown-1970-2025 and then give output files to F:\cho\data\ocr\done\markdown-1970-2025\output these are all legal court judgments and my prompt is folowing i try some codes but when i run my api start giving errors after few files search i dont known why my api gives error so fast F:\cho\data\ocr\grok>python filterofrullings.py
Checking A. Qutubuddin Khan (d_b_a “QMR Expert Consultants”) and others vs CHEC-Millwala Dredging Co. (Pvt.) Ltd_.md
Not favorable → skipped: F:\cho\data\ocr\done\markdown-1970-2025\2025\A. Qutubuddin Khan (d_b_a “QMR Expert Consultants”) and others vs CHEC-Millwala Dredging Co. (Pvt.) Ltd_.md
Checking A.M. Construction Company (Private) Limited vs Taisei Corporation, etc.md
Key gsk_pd0oVWDH hit 429. Removing permanently.
Not favorable → skipped: F:\cho\data\ocr\done\markdown-1970-2025\2025\A.M. Construction Company (Private) Limited vs Taisei Corporation, etc.md
=== Prompt for Filtering ===
BASE_PROMPT = “”"
You are an expert in Pakistani case law.
Evaluate the ruling below ONLY to decide if it clearly supports the case of Pir Salman Zahid
against Khair Muhammad in a property mutation dispute.
Mark “YES” only if the ruling supports one or more of these legal grounds in favor of Pir Salman Zahid:
-
Limitation Act / Time-Bar
- The appeal, revision, or administrative review was dismissed as time-barred.
- Delay was not condoned because the party had no sufficient cause.
- Court held that limitation is mandatory and jurisdiction cannot be exercised after limitation expires.
-
Mutation & Power of Attorney Fraud
- Mutation entries alone do not confer ownership when based on fraudulent, forged, or unpaid transactions.
- Fraud or misuse of Power of Attorney vitiates the transaction and the mutation can be cancelled.
Decision:
- Reply ONLY with “YES” if the ruling strongly supports any of the above in Pir Salman Zahid’s favour.
- Reply ONLY with “NO” if it does not.
“”"