MiniKG - A (mini) LLM-powered knowledge graph builder, retriever, and RAG system
For instructive use, but also supporting easy hackability and quick POCs
For a high-level look at GraphRAG and some of the design choices in minikg, check out the companion article.
Example
The example included in this repo is a knowledge graph built over transcripts of a few Meta earnings calls.
You can find the source PDFs of those calls here.
Note that they were converted to text with pdftotext, and commited to the repo here.
Here is a visualization of one 'community' from the resultant knowledge graph:

Build the example Meta earnings call GraphRAG system
export OPENAI_API_KEY=<> export JINA_AI_API_KEY=<>
cd ./examples/meta-call-transcripts
./build.pyQuery over the resultant system
./query.py "What technological investments appear most likely to yield profit for Meta in 2025?"