diff --git a/web/app.py b/web/app.py index 9d44865..66d5896 100644 --- a/web/app.py +++ b/web/app.py @@ -4897,8 +4897,6 @@ async def api_chair_pending(): """מרכז אישורים — דפנה: מאגד את כל השערים האנושיים (INV-G10) הממתינים להכרעת היו"ר במקום אחד, כדי שאף פריט לא יישכח. כל קטגוריה מחזירה ספירה + מדגם + קישור למקום הטיפול. כל ספירה היא שאילתת-מקור ישירה (לא נגזרת מטמונה).""" - from pathlib import Path as _Path - pool = await db.get_pool() categories: list[dict] = [] async with pool.acquire() as conn: @@ -4956,30 +4954,7 @@ async def api_chair_pending(): "sample": [{"text": r["case_number"], "source": r["title"]} for r in qa_rows[:5]], }) - # 5) סקירת gold-set (איכות-אחזור, FU-5) — מבוסס-קובץ, best-effort - try: - gp = _Path(__file__).resolve().parent.parent / "data" / "eval" / "gold-set.jsonl" - if gp.exists(): - total = chair = 0 - for line in gp.read_text(encoding="utf-8").splitlines(): - line = line.strip() - if not line: - continue - total += 1 - if '"source": "chair"' in line or '"source":"chair"' in line: - chair += 1 - unreviewed = total - chair - categories.append({ - "key": "gold_set", "label": "סקירת gold-set (איכות אחזור)", - "description": "שאילתות-מבחן לאיכות-האחזור — לאשר/לתקן אילו תוצאות נכונות.", - "count": unreviewed, "severity": "low" if unreviewed else "ok", - "href": None, "extra": {"total": total, "reviewed": chair}, - "sample": [], - }) - except Exception: - logger.exception("chair/pending: gold-set read failed (skipped)") - - total_pending = sum(c["count"] for c in categories if c["key"] != "gold_set") + total_pending = sum(c["count"] for c in categories) return { "total_pending": total_pending, "generated_at": datetime.now(timezone.utc).isoformat(),