Skip to content

Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.

chore: 更新 get_template_from_ka 函数以使用 load_ka_metadata

yifanfeng9761440b8bfa68
diff --git a/hyperextract/cli/utils.py b/hyperextract/cli/utils.py
index 188f34b..6dea896 100644
--- a/hyperextract/cli/utils.py
+++ b/hyperextract/cli/utils.py
@@ -116,10 +116,10 @@ def get_template_from_ka(ka_path: Path) -> Tuple[str, str]:
Raises:
ValueError: If template not found and no local yaml file exists
"""
- from .config import load_kb_metadata
+ from .config import load_ka_metadata
from hyperextract.utils.template_engine import Gallery
- metadata = load_kb_metadata(ka_path)
+ metadata = load_ka_metadata(ka_path)
if metadata is None:
raise ValueError(f"No metadata.json found in Knowledge Abstract: {ka_path}")