Usage

You can install and use the LightRAG plugin for AgensGraph to enable graph-aware RAG capabilities in your applications. The following example shows how to set up the environment variables, configure the storage, and run LightRAG with AgensGraph.

pip install lightrag-hku
from lightrag import LightRag
import lighrag_agensgraph

os.environ["AGENSGRAPH_DB"] = ""
os.environ["AGENSGRAPH_USER"] = ""
os.environ["AGENSGRAPH_PASSWORD"] = ""
os.environ["AGENSGRAPH_HOST"] = ""
os.environ["AGENSGRAPH_PORT"] = ""
os.environ["AGENSGRAPH_GRAPHNAME"] = ""

rag = LightRAG(
    graph_storage="AgensgraphStorage",
    ...
)

See examples and test for more details on how to use the plugin with LightRAG.