For your POC focused on sensemaking and broader context questions, here's a comprehensive evaluation of the best Graph RAG frameworks:
Recommendation Level: HIGHEST
LlamaIndex emerges as the most convenient and effective option for your POC requirements based on several key advantages:
According to Towards AI: "LlamaIndex easily deals with long context and requires no ML expertise to implement RAG."
from llama_index.indices.knowledge_graph import KnowledgeGraphIndex
from llama_index.storage.storage_context import StorageContext
from llama_index.graph_stores import SimpleGraphStore
# Create graph store
graph_store = SimpleGraphStore()
storage_context = StorageContext.from_defaults(graph_store=graph_store)
# Build index
kg_index = KnowledgeGraphIndex.from_documents(
documents,
storage_context=storage_context,
max_triplets_per_chunk=10
)
# Create query engine
query_engine = kg_index.as_query_engine()
response = query_engine.query(
"What are the relationships between different entities in my team?"
)