rahulnyk/knowledge_graph

Convert any text to a graph of knowledge. This can be used for Graph Augmented Generation or Knowledge Graph based QnA

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 hour ago
Added to GitGenius on September 17th, 2026
Created on October 22nd, 2023
Open Issues & Pull Requests: 19 (+0)
GitHub issues: Enabled
Number of forks: 630
Total Stargazers: 4,061 (+0)
Total Subscribers: 36 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.0 days
Mean response time: 142.6 days
90th percentile: 423.8 days
Tracked items: 3

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 456 days
Stale 30+ days: 6
Stale 90+ days: 6

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Knowledge Graph is a tool that converts any text corpus into a graph of knowledge for use in Graph Augmented Generation or knowledge graph-based question answering.

The tool addresses the problem of extracting meaningful structure from unstructured text by building a semantic network of concepts and their relationships. It works by splitting text into chunks, extracting concepts mentioned within each chunk using a local language model, and inferring relationships between concepts that appear in proximity to one another. Each edge in the resulting graph represents a text chunk containing two connected concepts. The approach prioritizes concepts over named entities, reasoning that concepts like "pleasant weather in Bangalore" create more meaningful graphs than isolated entity names.

The project suits developers who want to build knowledge graphs for retrieval-augmented generation or semantic search without relying on external API calls. It runs entirely on local hardware using Ollama to host an open-source language model, making it economical for personal machines and projects with cost constraints. The tool is presented as a notebook-based implementation, so adoption requires comfort with Jupyter environments and willingness to adapt the provided workflow to specific text sources.

The project shows active development with recent commits and ongoing refinement of the core extraction pipeline. The codebase demonstrates iterative improvement in the graph construction methodology. Documentation includes both conceptual explanation of knowledge graphs and practical implementation details, suggesting attention to helping users understand both the theory and mechanics of the approach.