Closed brycecf closed 2 months ago
The KnowledgeGraph
and ComposableGraph
serve distinct roles within the framework. The KnowledgeGraph
, or KnowledgeGraphIndex
, focuses on constructing and querying Knowledge Graphs from unstructured text, integrating with Large Language Models for entity-based querying and more. It's designed for direct interaction with Knowledge Graphs, automating their construction and providing a flexible query engine.
In contrast, the ComposableGraph
is aimed at managing and organizing multiple indices in a composable way. It's key for constructing and managing a graph of indices, allowing for complex data structures and relationships to be efficiently managed and queried. This includes handling the root index ID, accessing all indices, and facilitating the creation of complex index structures.
The reason ComposableGraph
is not used in a KnowledgeGraphIndex
could be related to the specific architectural decisions or requirements of the LlamaIndex framework, focusing on the distinct functionalities and use cases each class is designed to address.
If you need further details or have more questions, feel free to ask.
To continue the conversation, mention @dosu.
@brycecf A composable graph is just a collection of indexes that are arranged/queried in a sort of tree/graph structure. Its an older idea that is mostly deprecated at this point.
A knowledge graph is a collection of knowledge facts (i.e. triplets of subject, relation, object), along with the text chunks those triplets were extracted from.
So, the two are not related at all.
Question Validation
Question
Noticing that
ComposableGraph
is not used in aKnowledgeGraphIndex
, what is the intended usage forComposableGraph
?