๐ธ Turn text into a "graph of concepts" and use it as a RAG retriever instead of a vector DB. An OSS you can run fully locally.
Title: rahulnyk/knowledge_graph
URL:
๐ Overview
A project that builds a knowledge graph from unstructured text by extracting concepts (not just named entities) and their relationships, for Graph-Augmented Generation (GRAG) and knowledge-based QA.
๐งฉ Problem Solved
Traditional text analysis struggles to reveal how concepts interconnect and where hidden links lie. Representing knowledge as a queryable graph that preserves meaning enables deeper document understanding.
๐ Methodology & Approach
Built in six steps (clean โ extract concepts โ extract relations โ schema โ populate nodes/edges โ visualize). Edges carry two weights: W1 for LLM-extracted explicit relations, W2 for same-chunk co-occurrence. Node degree and community set node size and color.
๐ป Tech Stack
ใปLLM: Mistral 7B OpenOrca (no GPT API)
ใปServing: Ollama for a fully local pipeline
ใปGraph: NetworkX, Visualization: Pyvis, Data: Pandas
๐ฏ Use Cases
Graph RAG using the graph as a retriever instead of a vector DB, hidden-link discovery, centrality analysis, and community detection.
#
KnowledgeGraph# #
GraphRAG#