RAG engine for knowledge graph question-answering
Top 51.1% on sourcepulse
KRAGEN is a knowledge retrieval augmented generation (RAG) engine designed for complex problem-solving using natural language. It combines knowledge graphs, RAG, and Graph of Thoughts (GoT) prompting to break down problems, retrieve relevant facts from a vectorized knowledge graph (via Weaviate), and synthesize solutions, aiming to reduce hallucinations. The target audience includes researchers and power users working with complex datasets and LLMs.
How It Works
KRAGEN converts knowledge graphs into a vectorized database using Weaviate. It then employs a Graph of Thoughts (GoT) approach to decompose complex queries into smaller, manageable subproblems. For each subproblem, it retrieves relevant factual information via RAG from the vectorized knowledge graph. The retrieved facts are used to guide the LLM's reasoning process, which is visualized through a custom React-based viewer, allowing users to inspect and validate the GoT structure and logic.
Quick Start & Requirements
.env.sample
to .env
, update OPENAI_API_KEY
and WEAVIATE_URL
, build Docker images (docker compose build
), optionally set up Weaviate with data (docker compose run kragen setup test.csv
), and start the GUI (docker compose up gui
).Highlighted Details
Maintenance & Community
spcl/graph-of-thoughts
.Licensing & Compatibility
Limitations & Caveats
The setup requires an OpenAI API key, and the process may be affected by VPN services. The README mentions a test.csv
for demonstration, but users need to format their own data according to specified formats.
4 months ago
1 week