MCPcopy Create free account
hub / github.com/Enfoirer/Text2GraphRAG / GraphQuery

Class GraphQuery

rag_modules/graph_rag_retrieval.py:27–35  ·  view source on GitHub ↗

图查询结构

Source from the content-addressed store, hash-verified

25
26@dataclass
27class GraphQuery:
28 """图查询结构"""
29 query_type: QueryType
30 source_entities: List[str]
31 target_entities: List[str] = None
32 relation_types: List[str] = None
33 max_depth: int = 2
34 max_nodes: int = 50
35 constraints: Dict[str, Any] = None
36
37@dataclass
38class GraphPath:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected