Last active 1728669817

LlamaIndex-readme-7.py Raw
1from llama_index.core import StorageContext, load_index_from_storage
2
3# rebuild storage context
4storage_context = StorageContext.from_defaults(persist_dir="./storage")
5# load index
6index = load_index_from_storage(storage_context)