Table of Contents
Fetching ...

Docs2KG: Unified Knowledge Graph Construction from Heterogeneous Documents Assisted by Large Language Models

Qiang Sun, Yuanyi Luo, Wenxiao Zhang, Sirui Li, Jichunyang Li, Kai Niu, Xiangrui Kong, Wei Liu

TL;DR

The paper addresses the challenge of extracting and integrating knowledge from heterogeneous unstructured enterprise documents. It introduces Docs2KG, a dual-path framework that combines Image-based layout analysis and Markdown/HTML-based parsing to construct a multimodal knowledge graph with intra- and inter-modal relations, stored in Neo4j. Key contributions include open-source tooling, support for emails, web pages, PDFs, and Excel files, and demonstrations of graph querying and RAG-augmented retrieval using proximity-based node selection. This approach enhances information discovery, reduces language model hallucination in retrieval tasks, and enables flexible, domain-agnostic knowledge integration across diverse document formats.

Abstract

Even for a conservative estimate, 80% of enterprise data reside in unstructured files, stored in data lakes that accommodate heterogeneous formats. Classical search engines can no longer meet information seeking needs, especially when the task is to browse and explore for insight formulation. In other words, there are no obvious search keywords to use. Knowledge graphs, due to their natural visual appeals that reduce the human cognitive load, become the winning candidate for heterogeneous data integration and knowledge representation. In this paper, we introduce Docs2KG, a novel framework designed to extract multimodal information from diverse and heterogeneous unstructured documents, including emails, web pages, PDF files, and Excel files. Dynamically generates a unified knowledge graph that represents the extracted key information, Docs2KG enables efficient querying and exploration of document data lakes. Unlike existing approaches that focus on domain-specific data sources or pre-designed schemas, Docs2KG offers a flexible and extensible solution that can adapt to various document structures and content types. The proposed framework unifies data processing supporting a multitude of downstream tasks with improved domain interpretability. Docs2KG is publicly accessible at https://docs2kg.ai4wa.com, and a demonstration video is available at https://docs2kg.ai4wa.com/Video.

Docs2KG: Unified Knowledge Graph Construction from Heterogeneous Documents Assisted by Large Language Models

TL;DR

The paper addresses the challenge of extracting and integrating knowledge from heterogeneous unstructured enterprise documents. It introduces Docs2KG, a dual-path framework that combines Image-based layout analysis and Markdown/HTML-based parsing to construct a multimodal knowledge graph with intra- and inter-modal relations, stored in Neo4j. Key contributions include open-source tooling, support for emails, web pages, PDFs, and Excel files, and demonstrations of graph querying and RAG-augmented retrieval using proximity-based node selection. This approach enhances information discovery, reduces language model hallucination in retrieval tasks, and enables flexible, domain-agnostic knowledge integration across diverse document formats.

Abstract

Even for a conservative estimate, 80% of enterprise data reside in unstructured files, stored in data lakes that accommodate heterogeneous formats. Classical search engines can no longer meet information seeking needs, especially when the task is to browse and explore for insight formulation. In other words, there are no obvious search keywords to use. Knowledge graphs, due to their natural visual appeals that reduce the human cognitive load, become the winning candidate for heterogeneous data integration and knowledge representation. In this paper, we introduce Docs2KG, a novel framework designed to extract multimodal information from diverse and heterogeneous unstructured documents, including emails, web pages, PDF files, and Excel files. Dynamically generates a unified knowledge graph that represents the extracted key information, Docs2KG enables efficient querying and exploration of document data lakes. Unlike existing approaches that focus on domain-specific data sources or pre-designed schemas, Docs2KG offers a flexible and extensible solution that can adapt to various document structures and content types. The proposed framework unifies data processing supporting a multitude of downstream tasks with improved domain interpretability. Docs2KG is publicly accessible at https://docs2kg.ai4wa.com, and a demonstration video is available at https://docs2kg.ai4wa.com/Video.
Paper Structure (9 sections, 2 equations, 4 figures)

This paper contains 9 sections, 2 equations, 4 figures.

Figures (4)

  • Figure 1: Architecture Design for Docs2KG
  • Figure 2: A demo graph of query "Show me all documents and their components related to events that occurred in the years 2011 and 2021." by combining a PDF file and an Excel file. The PDF file contains information about the population size and structure of Hong Kong from 2011 to 2021. The Excel file contain records of the population census from 2021 to 2023. (Cyan indicates the PDF document; Green is for Excel file; Red for PDF page; Khaki for header; ocean blue for paragraph)
  • Figure 3: The Cypher Query to answer "Show me all documents and their components related to events that occurred in the years 2011 and 2021."
  • Figure 4: Retrieved relevant semantic and structural nodes for query "I want to know all the population information from 2011 to 2021" by combining the same files referenced in Section 4.1. (Green indicates <p> tag; Blue for <tr> tag.)