Polish project documentation and runtime config

This commit is contained in:
2026-06-09 10:22:59 +08:00
parent 5f061295d8
commit 0594fc9f8c
43 changed files with 1001 additions and 97 deletions

View File

@@ -13,7 +13,7 @@ from copy import deepcopy
from pathlib import Path
from typing import Any
ROOT = Path("/Users/xuexue/new2")
ROOT = Path(__file__).resolve().parents[1]
IN_JSON = ROOT / "docs/reports/huaxi_kg_extraction_comparison.json"
SCHEMA_JSON = ROOT / "app/schemas/kg_extraction_v1.schema.json"
OUT_JSON = ROOT / "docs/reports/huaxi_kg_schema_v1_ready.json"
@@ -217,7 +217,7 @@ def write_review_plan(raw: dict[str, Any], payload: dict[str, Any], validation:
"-> final_score < 0.8 或模型冲突:进入人工审核",
"```",
"",
"对应严格 JSON 输出:`/Users/xuexue/new2/docs/reports/huaxi_kg_schema_v1_ready.json`",
"对应严格 JSON 输出:`docs/reports/huaxi_kg_schema_v1_ready.json`",
]
OUT_REVIEW.write_text("\n".join(lines), encoding="utf-8")