code: import os, config, openai
  from llama_index import StorageContext, load_index_from_storage
  
  openai.api_key = config.OPENAI_API_KEY
  os.environ['OPENAI_API_KEY'] = config.OPENAI_API_KEY
  
  # new version of llama index uses StorageContext instead of load_from_disk
  # index = GPTSimpleVectorIndex.load_from_disk('index_news.json')
  storage_context = StorageContext.from_defaults(persist_dir="./storage")
  index = load_index_from_storage(storage_context)
  
  # new version of llama index uses query_engine.query()
  query_engine = index.as_query_engine()
  response = query_engine.query("What are some near-term risks to Nvidia?")
  print(response)
apis: llama_index.StorageContext.from_defaults llama_index.load_index_from_storage
extract_api: [((342, 395), 'llama_index.StorageContext.from_defaults', 'StorageContext.from_defaults', ([], {'persist_dir': '"""./storage"""'}), "(persist_dir='./storage')\n", (370, 395), False, 'from llama_index import StorageContext, load_index_from_storage\n'), ((404, 444), 'llama_index.load_index_from_storage', 'load_index_from_storage', (['storage_context'], {}), '(storage_context)\n', (427, 444), False, 'from llama_index import StorageContext, load_index_from_storage\n')]