graphrag 0.2.0

GraphRAG - Knowledge Graph RAG: meta-crate that bundles graphrag-core and graphrag-cli
Documentation

graphrag

Meta-crate for GraphRAG — Knowledge Graph Retrieval-Augmented Generation in Rust.

It bundles the workspace into a single hello-world dependency: it re-exports graphrag-core for library users and ships the graphrag binary (the full TUI + CLI, backed by graphrag-cli).

Install the binary

cargo install graphrag

This installs graphrag, the zero-config TUI and CLI:

graphrag index ./docs/symposium.txt --workspace ./graphrag-data
graphrag ask "Who is Diotima?" --workspace ./graphrag-data
graphrag                       # interactive TUI

Use as a library

[dependencies]
graphrag = "0.1"

Every public type from graphrag-core is re-exported, so use graphrag::* is all you need:

use graphrag::GraphRAG;

let mut rag = GraphRAG::quick_start("Diotima taught Socrates about love.")?;
let answer = rag.ask("What did Diotima teach?")?;
println!("{answer}");
# Ok::<(), Box<dyn std::error::Error>>(())

Documentation

License

Same as the workspace (see the root LICENSE).