When to use it#
llama-index-agensgraph is for teams building retrieval and RAG applications in
LlamaIndex that want AgensGraph behind LlamaIndex’s standard index abstractions.
Good fits
Property-graph RAG. Build a
PropertyGraphIndexfrom documents withSchemaLLMPathExtractor, then answer questions with combined graph + vector retrieval, or with AgensGraph-dialect Text2Cypher, run read-only bySafeTextToCypherRetriever.Vector RAG. Back a
VectorStoreIndexwith pgvector and query it through any LlamaIndex query engine or retriever.Precise, filtered retrieval. Constrain results with LlamaIndex
MetadataFilters(all 14 operators, plus AND/OR/NOT and nested groups), index the keys you filter on, and combine semantic and keyword search with reciprocal-rank-fusion hybrid mode, filtered or not.Mixed-retrieval apps. Route a single question between a graph index and a vector index, sharing one
AgensEnginepool, with aRouterQueryEngineor an agent.Async services. Use the async methods (
aquery,async_add,aupsert_nodes,avector_query, …), which do not block the event loop, for concurrent workloads.
How it compares
Pick llama-index-agensgraph when your application is built on LlamaIndex.
Pick LangChain if you build on LangChain instead — it also adds chat history and a LangGraph checkpointer.
Pick LightRAG or cognee for a turnkey graph-RAG or memory pipeline rather than assembling indices and retrievers yourself.
Consider an alternative when
You want an agent such as Claude Desktop to use AgensGraph through tools with no application code — use the MCP servers.
You only need raw Cypher access without LLM features — the
agensgraph-pythondriver is enough.