Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Enfoirer/Text2GraphRAG
/ types & classes
Types & classes
51 in github.com/Enfoirer/Text2GraphRAG
⨍
Functions
365
◇
Types & classes
51
↓ 6 callers
Class
GraphQuery
图查询结构
rag_modules/graph_rag_retrieval.py:27
↓ 5 callers
Class
LLMRecipeAgent
OpenAI菜谱解析AI Agent
agent/recipe_ai_agent.py:61
↓ 5 callers
Class
RetrievalResult
检索结果数据结构
rag_modules/hybrid_retrieval.py:20
↓ 4 callers
Class
RecipeKnowledgeGraphBuilder
菜谱知识图谱构建器 - 支持分批保存和断点续传
agent/recipe_ai_agent.py:309
↓ 3 callers
Class
KnowledgeSubgraph
知识子图结构
rag_modules/graph_rag_retrieval.py:47
↓ 2 callers
Class
GraphNode
图节点数据结构
rag_modules/graph_data_preparation.py:15
↓ 2 callers
Class
QueryAnalysis
查询分析结果
rag_modules/intelligent_query_router.py:25
↓ 2 callers
Class
QueryParam
nano_graphrag/base.py:10
↓ 2 callers
Class
RecipeInfo
菜谱信息
agent/recipe_ai_agent.py:37
↓ 2 callers
Class
Relationship
nano_graphrag/entity_extraction/module.py:87
↓ 2 callers
Class
TokenizerWrapper
nano_graphrag/_utils.py:123
↓ 2 callers
Class
TypedEntityRelationshipExtractor
nano_graphrag/entity_extraction/module.py:261
↓ 2 callers
Class
TypedEntityRelationshipExtractorException
nano_graphrag/entity_extraction/module.py:236
↓ 1 callers
Class
AdvancedGraphRAGSystem
图RAG系统 核心特性: 1. 智能路由:自动选择最适合的检索策略 2. 双引擎检索:传统混合检索 + 图RAG检索 3. 图结构推理:多跳遍历、子图提取、关系推理 4. 查询复杂度分析:深度理解用户意图 5. 自适应学习:基于反馈
main.py:33
↓ 1 callers
Class
AmountNormalizer
用量标准化器
agent/amount_normalizer.py:10
↓ 1 callers
Class
CookingStep
烹饪步骤
agent/recipe_ai_agent.py:28
↓ 1 callers
Class
EmbeddingFunc
nano_graphrag/_utils.py:266
↓ 1 callers
Class
EntityKeyValue
实体键值对
rag_modules/graph_indexing.py:19
↓ 1 callers
Class
GenerationIntegrationModule
生成集成模块 - 负责答案生成
rag_modules/generation_integration.py:15
↓ 1 callers
Class
GraphDataPreparationModule
图数据库数据准备模块 - 从Neo4j读取数据并转换为文档
rag_modules/graph_data_preparation.py:30
↓ 1 callers
Class
GraphIndexingModule
图索引模块 核心功能: 1. 为实体创建键值对(名称作为唯一索引键) 2. 为关系创建键值对(多个索引键,包含全局主题) 3. 去重和优化图操作 4. 支持增量更新
rag_modules/graph_indexing.py:38
↓ 1 callers
Class
GraphPath
图路径结构
rag_modules/graph_rag_retrieval.py:38
↓ 1 callers
Class
GraphRAG
nano_graphrag/graphrag.py:53
↓ 1 callers
Class
GraphRAGConfig
基于图数据库的RAG系统配置类
config.py:9
↓ 1 callers
Class
GraphRAGRetrieval
真正的图RAG检索系统 核心特点: 1. 查询意图理解:识别图查询模式 2. 多跳图遍历:深度关系探索 3. 子图提取:相关知识网络 4. 图结构推理:基于拓扑的推理 5. 动态查询规划:自适应遍历策略
rag_modules/graph_rag_retrieval.py:55
↓ 1 callers
Class
HybridRetrievalModule
混合检索模块 核心特点: 1. 双层检索范式(实体级 + 主题级) 2. 关键词提取和匹配 3. 图结构+向量检索结合 4. 一跳邻居扩展 5. Round-robin轮询合并策略
rag_modules/hybrid_retrieval.py:29
↓ 1 callers
Class
IngredientInfo
食材信息
agent/recipe_ai_agent.py:19
↓ 1 callers
Class
IntelligentQueryRouter
智能查询路由器 核心能力: 1. 查询复杂度分析:识别简单查找 vs 复杂推理 2. 关系密集度评估:判断是否需要图结构优势 3. 策略自动选择:路由到最适合的检索引擎 4. 结果质量监控:基于反馈优化路由决策
rag_modules/intelligent_query_router.py:35
↓ 1 callers
Class
MilvusIndexConstructionModule
Milvus索引构建模块 - 负责向量化和Milvus索引构建
rag_modules/milvus_index_construction.py:16
↓ 1 callers
Class
QueryType
查询类型枚举
rag_modules/graph_rag_retrieval.py:18
↓ 1 callers
Class
RecipeTextToGraphBuilder
Build a recipe knowledge graph directly from raw markdown files. The builder first relies on :class:`nano_graphrag.graphrag.GraphRAG` to
rag_modules/text_to_graph_ingestor.py:115
↓ 1 callers
Class
RelationKeyValue
关系键值对
rag_modules/graph_indexing.py:28
↓ 1 callers
Class
SearchStrategy
搜索策略枚举
rag_modules/intelligent_query_router.py:18
↓ 1 callers
Class
SeparatorSplitter
nano_graphrag/_splitter.py:3
↓ 1 callers
Class
_Neo4jRecipeGraphWriter
Helper that converts the extracted NetworkX graph into Neo4j nodes/edges.
rag_modules/text_to_graph_ingestor.py:239
Class
AssessRelationships
Assess the similarity between gold and predicted relationships: 1. Match relationships based on src_id and tgt_id pairs, allowing for slight
nano_graphrag/entity_extraction/metric.py:5
Class
BaseGraphStorage
nano_graphrag/base.py:117
Class
BaseKVStorage
nano_graphrag/base.py:93
Class
BaseVectorStorage
nano_graphrag/base.py:78
Class
CombinedExtraction
Given a text document that is potentially relevant to this activity and a list of entity types, identify all entities of those types from the
nano_graphrag/entity_extraction/module.py:117
Class
CommunitySchema
nano_graphrag/base.py:51
Class
CritiqueCombinedExtraction
Critique the current extraction of entities and relationships from a given text. Focus on completeness, accuracy, and adherence to the provid
nano_graphrag/entity_extraction/module.py:162
Class
Entity
nano_graphrag/entity_extraction/module.py:65
Class
GraphRelation
图关系数据结构
rag_modules/graph_data_preparation.py:23
Class
HNSWVectorStorage
nano_graphrag/_storage/vdb_hnswlib.py:15
Class
JsonKVStorage
nano_graphrag/_storage/kv_json.py:11
Class
NanoVectorDBStorage
nano_graphrag/_storage/vdb_nanovectordb.py:12
Class
Neo4jStorage
nano_graphrag/_storage/gdb_neo4j.py:20
Class
NetworkXStorage
nano_graphrag/_storage/gdb_networkx.py:20
Class
RefineCombinedExtraction
Refine the current extraction of entities and relationships based on the provided critique. Improve completeness, accuracy, and adherence to
nano_graphrag/entity_extraction/module.py:196
Class
StorageNameSpace
nano_graphrag/base.py:60