Skip to main content

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

Project description

Open Source Framework: Docs2KG

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

PyPI Demo Lint Documentation Status

Installation

We have published the package to PyPi, you can install it via:

pip install Docs2KG

Motivation

Three pillars of the LLM applications in our opinion:

  • Data
  • RAG
  • LLM

Most of the tools in the market nowadays are focusing on the Retrieval Augmented Generation (RAG) pipelines or How to get Large Language Models (LLMs) to run locally.

Typical tools include: Ollama, LangChain, LLamaIndex, etc.

However, to make sure the wider community can benefit from the latest research, we need to first solve the data problem.

The Wider community includes personal users, small business, and even large enterprises. Some of them might have developed databases, while most of them do have a lot of data, but they are all in unstructured form, and distributed in different places.

So the first challenges will be:

  • How can we easily process the unstructured data into a centralized place?
  • What is the best way to organize the data within the centralized place?

Proposed Solution

This package is a proposed solution to the above challenges.

  • We developed the tool for the wider community to easily process the unstructured data into a centralized place.
  • We proposed a way to organize the data within the centralized place, via a Unified Multimodal Knowledge Graph altogether with semi-structured data.

Overall Architecture

The overall workflow will be:

img.png

Implemented System Architecture

img.png

Unified Multimodal Knowledge Graph

How we construct this unified multimodal knowledge graph step by step:

img.png


Setup and Development

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements.dev.txt

pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docs2kg-0.2.1.tar.gz (60.2 kB view hashes)

Uploaded Source

Built Distribution

Docs2KG-0.2.1-py3-none-any.whl (88.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page