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: 移除未使用的导入,简化代码结构

yifanfeng976a17fdf7891c
diff --git a/hyperextract/hypergraphs/hyper_rag.py b/hyperextract/hypergraphs/hyper_rag.py
index c70e151..b433af7 100644
--- a/hyperextract/hypergraphs/hyper_rag.py
+++ b/hyperextract/hypergraphs/hyper_rag.py
@@ -6,12 +6,9 @@ Extracts and manages multi-entity relationships with support for n-ary hyperedge
from typing import List
from pydantic import BaseModel, Field
from hyperextract.hypergraphs.base import AutoHypergraph
-from langchain_core.messages import AIMessage
from langchain_core.embeddings import Embeddings
from langchain_core.language_models import BaseChatModel
-from langchain_core.prompts.chat import ChatPromptTemplate
from ontomem.merger import CustomRuleMerger
-from ..utils.logging import logger
# ============================================================================
# Node Schema