此仓库包含 AutoSchemaKG 的实现,这是一种新的自动知识图谱构建框架,它通过协同生成模式来构建知识图谱。
This repository contains the implementation of AutoSchemaKG, a novel framework for automatic knowledge graph construction that combines schema generation via conceptualization. The framework is designed to address the challenges of constructing high-quality knowledge graphs from unstructured text.
Homepage and Documentation: https://hkust-knowcomp.github.io/AutoSchemaKG/
This project uses the following paper and data:
AutoSchemaKG introduces a two-stage approach:
The framework achieves state-of-the-art performance on multiple benchmarks and demonstrates strong generalization capabilities across different domains.
ATLAS (Automated Triple Linking And Schema induction) is a family of knowledge graphs created through the AutoSchemaKG framework, which enables fully autonomous knowledge graph construction without predefined schemas. Here's a summary of what ATLAS is and how it works:
…The project is organized into several key components:
atlas_rag/: Core package with KG construction, LLM generation, retrieval, and vector storageexample/: Complete tutorials, scripts, and sample data for various use casesneo4j_scripts/: Database management and hosting utilitiestests/: Unit tests ensuring code reliabilitypip install atlas-ragTo support NV-embed-v2, install the transformers package with the version constraint >=4.42.4,',base_url="")
model_name = "meta-llama/Llama-3.1-8B-Instruct" client = pipeline( "text-generation", model=model_name, device_map="auto", ) keyword = 'Dulce' output_directory = f'import/{keyword}' triple_generator = LLMGenerator(client, model_name=model_name) kg_extraction_config = ProcessingConfig( model_path=model_name, data_directory="example_data", filename_pattern=keyword, # Will read the files with string filename_patterns in the data directory as input files batch_size_triple=3, # batch size for triple extraction batch_size_concept=16, # batch size for concept generation output_directory=f"{output_directory}", max_new_tokens=2048, max_workers=3, remove_doc_spaces=True, # For removing duplicated spaces in the document text ) kg_extractor = KnowledgeGraphExtractor(model=triple_generator, config=kg_extraction_config)
kg_extractor.run_extraction() # Involved LLM Generation
kg_extractor.convert_json_to_csv()
kg_extractor.generate_concept_csv_temp(batch_size=64) # Involved LLM Generation
kg_extractor.create_concept_csv()
kg_extractor.convert_to_graphml()
…@misc{bai2025autoschemakgautonomousknowledgegraph, title={AutoSchemaKG: Autonomous Knowledge Graph Construction through Dynamic Schema Induction from Web-Scale Corpora}, author={Jiaxin Bai and Wei Fan and Qi Hu and Qing Zong and Chunyang Li and Hong Ting Tsang and Hongyu Luo and Yauwai Yim and Haoyu Huang and Xiao Zhou and Feng Qin and Tianshi Zheng and Xi Peng and Xin Yao and Huiwen Yang and Leijie Wu and Yi Ji and Gong Zhang and Renhai Chen and Yangqiu Song}, year={2025}, eprint={2505.23628}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2505.23628}, }
## Contact
Jiaxin Bai: [email protected]
Dennis Hong Ting TSANG : [email protected]
Haoyu Huang: [email protected]暂无开放 Issues,或尚未同步最近议题。