storage_context = StorageContext.from_defaults() obj_index = ObjectIndex.from_objects( table_schema_objs, table_node_mapping, VectorStoreIndex, storage_context=storage_context, ) storage_context.persist(persist_dir=persist_dir)