Build real-time knowledge graph for documents with LLM
Published on: 2025-07-11 13:48:04
CocoIndex makes it easy to build and maintain knowledge graphs with continuous source updates. In this blog, we will process a list of documents (using CocoIndex documentation as an example). We will use LLM to extract relationships between the concepts in each document. We will generate two kinds of relationships:
Relationships between subjects and objects. E.g., "CocoIndex supports Incremental Processing" Mentions of entities in a document. E.g., "core/basics.mdx" mentions CocoIndex and Incremental Processing .
The source code is available at CocoIndex Examples - docs_to_knowledge_graph.
We are constantly improving, and more features and examples are coming soon. Stay tuned and follow our progress by starring our GitHub repo.
You can read the official CocoIndex Documentation for Property Graph Targets here.
We will process CocoIndex documentation markdown files ( .md , .mdx ) from the docs/core directory (markdown files, deployed docs).
@cocoindex . flow_def ( name = "DocsToKG"
... Read full article.