Refine label complexity knowledge

This commit is contained in:
wuyang6
2026-05-11 11:08:36 +08:00
parent ca2f6f36fc
commit 1752c81913
10 changed files with 263 additions and 55 deletions
@@ -250,11 +250,18 @@ def parse_dimension_files() -> list[dict[str, str]]:
if not root.exists():
return []
files: list[dict[str, str]] = []
for path in sorted(root.glob("*.md")):
if path.name == "README.md":
for path in sorted(root.rglob("*.md")):
if path == root / "README.md":
continue
text = read_text(path)
files.append({"name": first_heading(text, path.stem), "path": rel(path)})
item = {"name": first_heading(text, path.stem), "path": rel(path)}
parent_dimension = extract_bullet_value(text, "父维度")
output_field = extract_bullet_value(text, "输出字段")
if parent_dimension:
item["parent_dimension"] = parent_dimension
if output_field:
item["output_field"] = output_field
files.append(item)
return files