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

Class QueryAnalysis

rag_modules/intelligent_query_router.py:25–33  ·  view source on GitHub ↗

查询分析结果

Source from the content-addressed store, hash-verified

23
24@dataclass
25class QueryAnalysis:
26 """查询分析结果"""
27 query_complexity: float # 查询复杂度 (0-1)
28 relationship_intensity: float # 关系密集度 (0-1)
29 reasoning_required: bool # 是否需要推理
30 entity_count: int # 实体数量
31 recommended_strategy: SearchStrategy
32 confidence: float # 推荐置信度
33 reasoning: str # 推荐理由
34
35class IntelligentQueryRouter:
36 """

Callers 2

analyze_queryMethod · 0.85
_rule_based_analysisMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected