Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Enfoirer/Text2GraphRAG
/ functions
Functions
365 in github.com/Enfoirer/Text2GraphRAG
⨍
Functions
365
◇
Types & classes
51
↓ 1 callers
Method
_enforce_overlap
(self, chunks: List[List[int]])
nano_graphrag/_splitter.py:82
↓ 1 callers
Method
_ensure_indexes
(self)
rag_modules/text_to_graph_ingestor.py:316
↓ 1 callers
Method
_ensure_node
(self, session, label: str, name: str, data: dict)
rag_modules/text_to_graph_ingestor.py:404
↓ 1 callers
Method
_ensure_relationship
( self, session, source_info: Tuple[str, str], target_info: Tuple[str, str],
rag_modules/text_to_graph_ingestor.py:436
↓ 1 callers
Method
_extract_aliases_from_document
(self, text: str)
rag_modules/text_to_graph_ingestor.py:179
↓ 1 callers
Method
_extract_relationships_from_graph
从Neo4j图中提取关系
rag_modules/hybrid_retrieval.py:110
↓ 1 callers
Method
_find_entity_relations
查找实体间关系
rag_modules/graph_rag_retrieval.py:612
↓ 1 callers
Function
_find_most_related_community_from_entities
( node_datas: list[dict], query_param: QueryParam, community_reports: BaseKVStorage[CommunitySchem
nano_graphrag/_op.py:700
↓ 1 callers
Function
_find_most_related_edges_from_entities
( node_datas: list[dict], query_param: QueryParam, knowledge_graph_inst: BaseGraphStorage, tok
nano_graphrag/_op.py:807
↓ 1 callers
Function
_find_most_related_text_unit_from_entities
( node_datas: list[dict], query_param: QueryParam, text_chunks_db: BaseKVStorage[TextChunkSchema],
nano_graphrag/_op.py:748
↓ 1 callers
Method
_find_shortest_paths
查找最短路径
rag_modules/graph_rag_retrieval.py:616
↓ 1 callers
Function
_form_single_community_report
( community: SingleCommunitySchema, already_reports: dict[str, CommunitySchema] )
nano_graphrag/_op.py:643
↓ 1 callers
Method
_generate_ingredient_synonyms
生成食材的同义词列表
agent/recipe_ai_agent.py:878
↓ 1 callers
Method
_generate_recipe_synonyms
生成菜谱的同义词列表
agent/recipe_ai_agent.py:723
↓ 1 callers
Method
_generate_relation_index_keys
为关系生成多个索引键,包含全局主题
rag_modules/graph_indexing.py:183
↓ 1 callers
Function
_handle_single_entity_extraction
( record_attributes: list[str], chunk_key: str, )
nano_graphrag/_op.py:138
↓ 1 callers
Function
_handle_single_relationship_extraction
( record_attributes: list[str], chunk_key: str, )
nano_graphrag/_op.py:159
↓ 1 callers
Method
_identify_reasoning_patterns
识别推理模式
rag_modules/graph_rag_retrieval.py:600
↓ 1 callers
Method
_init_predefined_concepts
初始化预定义概念
agent/recipe_ai_agent.py:346
↓ 1 callers
Method
_init_relationship_mappings
初始化关系类型映射
agent/recipe_ai_agent.py:330
↓ 1 callers
Method
_init_workspace
(self)
nano_graphrag/_storage/gdb_neo4j.py:60
↓ 1 callers
Method
_insert_done
(self)
nano_graphrag/graphrag.py:360
↓ 1 callers
Method
_insert_start
(self)
nano_graphrag/graphrag.py:350
↓ 1 callers
Method
_is_chinese
检测是否为中文
agent/recipe_ai_agent.py:833
↓ 1 callers
Method
_is_english
检测是否为英文
agent/recipe_ai_agent.py:826
↓ 1 callers
Method
_llm_enhance_relation_keys
使用LLM增强关系索引键,生成全局主题
rag_modules/graph_indexing.py:247
↓ 1 callers
Method
_load_markdown_documents
(self)
rag_modules/text_to_graph_ingestor.py:163
↓ 1 callers
Function
_map_global_communities
( query: str, communities_data: list[CommunitySchema], query_param: QueryParam, global_config:
nano_graphrag/_op.py:970
↓ 1 callers
Method
_map_label
(self, entity_type: str)
rag_modules/text_to_graph_ingestor.py:367
↓ 1 callers
Method
_map_relationship
(self, label_a: str, label_b: str)
rag_modules/text_to_graph_ingestor.py:471
↓ 1 callers
Method
_merge_splits
(self, splits: List[List[int]])
nano_graphrag/_splitter.py:47
↓ 1 callers
Method
_neo4j_entity_level_search
Neo4j补充检索
rag_modules/hybrid_retrieval.py:241
↓ 1 callers
Method
_neo4j_topic_level_search
Neo4j主题级检索补充
rag_modules/hybrid_retrieval.py:372
↓ 1 callers
Method
_next_id
(self, label: str)
rag_modules/text_to_graph_ingestor.py:498
↓ 1 callers
Method
_normalize_name
(self, name: str)
rag_modules/text_to_graph_ingestor.py:397
↓ 1 callers
Function
_pack_single_community_by_sub_communities
( community: SingleCommunitySchema, max_token_size: int, already_reports: dict[str, CommunitySchem
nano_graphrag/_op.py:417
↓ 1 callers
Function
_pack_single_community_describe
( knwoledge_graph_inst: BaseGraphStorage, community: SingleCommunitySchema, tokenizer_wrapper: "To
nano_graphrag/_op.py:464
↓ 1 callers
Method
_parse_neo4j_path
解析Neo4j路径记录
rag_modules/graph_rag_retrieval.py:464
↓ 1 callers
Method
_post_process_results
结果后处理:根据查询分析优化结果
rag_modules/intelligent_query_router.py:245
↓ 1 callers
Function
_process
(community_truncated_datas: list[CommunitySchema])
nano_graphrag/_op.py:990
↓ 1 callers
Function
_process_single_content
(chunk_key_dp: tuple[str, TextChunkSchema])
nano_graphrag/_op.py:309
↓ 1 callers
Method
_query_done
(self)
nano_graphrag/graphrag.py:376
↓ 1 callers
Method
_rank_by_graph_relevance
基于图结构相关性排序
rag_modules/graph_rag_retrieval.py:588
↓ 1 callers
Method
_rebuild_key_mappings
重建键到实体/关系的映射
rag_modules/graph_indexing.py:332
↓ 1 callers
Method
_rebuild_knowledge_base
重建知识库
main.py:383
↓ 1 callers
Method
_rule_based_analysis
基于规则的降级分析
rag_modules/intelligent_query_router.py:142
↓ 1 callers
Method
_setup_client
初始化Milvus客户端
rag_modules/milvus_index_construction.py:71
↓ 1 callers
Method
_setup_embeddings
初始化嵌入模型
rag_modules/milvus_index_construction.py:87
↓ 1 callers
Method
_show_system_stats
显示系统统计信息
main.py:363
↓ 1 callers
Method
_split_chunk
(self, chunk: List[int])
nano_graphrag/_splitter.py:74
↓ 1 callers
Method
_split_tokens_with_separators
(self, tokens: List[int])
nano_graphrag/_splitter.py:22
↓ 1 callers
Method
_stabilize_graph
Refer to https://github.com/microsoft/graphrag/index/graph/utils/stable_lcc.py Ensure an undirected graph with the same relationships will alw
nano_graphrag/_storage/gdb_networkx.py:48
↓ 1 callers
Method
_subgraph_to_documents
将知识子图转换为Document对象
rag_modules/graph_rag_retrieval.py:543
↓ 1 callers
Method
_update_route_stats
更新路由统计
rag_modules/intelligent_query_router.py:259
↓ 1 callers
Method
_validate_reasoning_chains
验证推理链
rag_modules/graph_rag_retrieval.py:608
↓ 1 callers
Method
ainsert
(self, string_or_strings)
nano_graphrag/graphrag.py:277
↓ 1 callers
Function
amazon_bedrock_complete_if_cache
( model, prompt, system_prompt=None, history_messages=[], **kwargs )
nano_graphrag/_llm.py:83
↓ 1 callers
Method
aquery
(self, query: str, param: QueryParam = QueryParam())
nano_graphrag/graphrag.py:236
↓ 1 callers
Method
ask_question_with_routing
智能问答:自动选择最佳检索策略
main.py:232
↓ 1 callers
Method
build
Entrypoint that loads markdown, runs extraction and persists to Neo4j.
rag_modules/text_to_graph_ingestor.py:147
↓ 1 callers
Function
build_config
(args: argparse.Namespace)
ingest.py:65
↓ 1 callers
Method
build_vector_index
构建向量索引 Args: chunks: 文档块列表 Returns: 是否构建成功
rag_modules/milvus_index_construction.py:207
↓ 1 callers
Method
call_openai_api
调用OpenAI API
agent/recipe_ai_agent.py:103
↓ 1 callers
Function
clean_batches
清理所有批次数据
agent/batch_manager.py:71
↓ 1 callers
Function
clean_progress
清理进度文件,重新开始处理
agent/batch_manager.py:57
↓ 1 callers
Method
close
关闭数据库连接
rag_modules/graph_data_preparation.py:80
↓ 1 callers
Method
close
关闭连接
rag_modules/milvus_index_construction.py:503
↓ 1 callers
Method
clustering
(self, algorithm: str)
nano_graphrag/base.py:178
↓ 1 callers
Function
continue_processing
继续处理中断的任务
agent/batch_manager.py:124
↓ 1 callers
Method
create_collection
创建Milvus集合 Args: force_recreate: 是否强制重新创建集合 Returns: 是否创建成功
rag_modules/milvus_index_construction.py:130
↓ 1 callers
Method
create_entity_key_values
为实体创建键值对结构 每个实体使用其名称作为唯一索引键
rag_modules/graph_indexing.py:60
↓ 1 callers
Method
create_index
创建向量索引 Returns: 是否创建成功
rag_modules/milvus_index_construction.py:170
↓ 1 callers
Method
create_relation_key_values
为关系创建键值对结构 关系可能有多个索引键,包含从LLM增强的全局主题
rag_modules/graph_indexing.py:130
↓ 1 callers
Method
deduplicate_entities_and_relations
去重相同的实体和关系,优化图操作
rag_modules/graph_indexing.py:279
↓ 1 callers
Method
delete_collection
删除集合 Returns: 是否删除成功
rag_modules/milvus_index_construction.py:448
↓ 1 callers
Function
demo_normalization
演示标准化功能
agent/amount_normalizer.py:204
↓ 1 callers
Method
drop
(self)
nano_graphrag/base.py:112
↓ 1 callers
Method
dual_level_retrieval
双层检索:结合实体级和主题级检索
rag_modules/hybrid_retrieval.py:440
↓ 1 callers
Method
edge_degree
(self, src_id: str, tgt_id: str)
nano_graphrag/_storage/gdb_networkx.py:119
↓ 1 callers
Method
edge_degrees_batch
(self, edge_pairs: list[tuple[str, str]])
nano_graphrag/_storage/gdb_neo4j.py:149
↓ 1 callers
Function
enclose_string_with_quotes
Enclose a string with quotes
nano_graphrag/_utils.py:232
↓ 1 callers
Method
entity_level_retrieval
实体级检索:专注于具体实体和关系 使用图索引的键值对结构进行检索
rag_modules/hybrid_retrieval.py:195
↓ 1 callers
Method
explain_routing_decision
解释路由决策过程
rag_modules/intelligent_query_router.py:283
↓ 1 callers
Method
export_to_rf2_format
导出为RF2标准格式
agent/recipe_ai_agent.py:1061
↓ 1 callers
Function
extract_first_complete_json
Extract the first complete JSON object from the string using a stack to track braces.
nano_graphrag/_utils.py:34
↓ 1 callers
Method
extract_knowledge_subgraph
提取知识子图:获取实体相关的完整知识网络 这体现了图RAG的整体性思维
rag_modules/graph_rag_retrieval.py:283
↓ 1 callers
Method
extract_query_keywords
提取查询关键词:实体级 + 主题级
rag_modules/hybrid_retrieval.py:136
↓ 1 callers
Function
extract_values_from_json
Extract key values from a non-standard or malformed JSON string, handling nested objects.
nano_graphrag/_utils.py:81
↓ 1 callers
Function
finding_explanation
(finding: dict)
nano_graphrag/_op.py:614
↓ 1 callers
Function
finding_summary
(finding: dict)
nano_graphrag/_op.py:609
↓ 1 callers
Method
from_dict
从字典创建配置对象
config.py:46
↓ 1 callers
Method
generate_adaptive_answer_stream
LightRAG风格的流式答案生成(带重试机制)
rag_modules/generation_integration.py:89
↓ 1 callers
Function
generate_community_report
( community_report_kv: BaseKVStorage[CommunitySchema], knwoledge_graph_inst: BaseGraphStorage, tok
nano_graphrag/_op.py:625
↓ 1 callers
Function
get_chunks
(new_docs, chunk_func=chunking_by_token_size, tokenizer_wrapper: TokenizerWrapper = None, **chunk_func_params)
nano_graphrag/_op.py:94
↓ 1 callers
Method
get_collection_stats
获取集合统计信息 Returns: 统计信息字典
rag_modules/milvus_index_construction.py:425
↓ 1 callers
Method
get_edge
( self, source_node_id: str, target_node_id: str )
nano_graphrag/_storage/gdb_networkx.py:127
↓ 1 callers
Method
get_edges_batch
( self, edge_pairs: list[tuple[str, str]] )
nano_graphrag/base.py:147
↓ 1 callers
Method
get_edges_batch
( self, edge_pairs: list[tuple[str, str]] )
nano_graphrag/_storage/gdb_neo4j.py:246
↓ 1 callers
Method
get_node
(self, node_id: str)
nano_graphrag/_storage/gdb_networkx.py:106
↓ 1 callers
Method
get_node_edges
(self, source_node_id: str)
nano_graphrag/_storage/gdb_networkx.py:137
← previous
next →
101–200 of 365, ranked by callers