Loading Indicesο
- llama_index.indices.loading.load_graph_from_storage(storage_context: StorageContext, root_id: str, **kwargs: Any) ComposableGraph ο
Load composable graph from storage context.
- Parameters
storage_context (StorageContext) β storage context containing docstore, index store and vector store.
root_id (str) β ID of the root index of the graph.
**kwargs β Additional keyword args to pass to the index constructors.
- llama_index.indices.loading.load_index_from_storage(storage_context: StorageContext, index_id: Optional[str] = None, **kwargs: Any) BaseIndex ο
Load index from storage context.
- Parameters
storage_context (StorageContext) β storage context containing docstore, index store and vector store.
index_id (Optional[str]) β ID of the index to load. Defaults to None, which assumes thereβs only a single index in the index store and load it.
**kwargs β Additional keyword args to pass to the index constructors.
- llama_index.indices.loading.load_indices_from_storage(storage_context: StorageContext, index_ids: Optional[Sequence[str]] = None, **kwargs: Any) List[BaseIndex] ο
Load multiple indices from storage context
- Parameters
storage_context (StorageContext) β storage context containing docstore, index store and vector store.
index_id (Optional[Sequence[str]]) β IDs of the indices to load. Defaults to None, which loads all indices in the index store.
**kwargs β Additional keyword args to pass to the index constructors.