code: import os
  import logging
  import sys
  from llama_index import GPTSimpleVectorIndex
  
  logging.basicConfig(stream=sys.stdout, level=logging.INFO)
  logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
  
  # 加载索引
  new_index = GPTSimpleVectorIndex.load_from_disk('index.json')
  # 查询索引
  response = new_index.query("What did the author do in 9th grade?")
  # 打印答案
  print(response)
  
apis: llama_index.GPTSimpleVectorIndex.load_from_disk
extract_api: [((82, 140), 'logging.basicConfig', 'logging.basicConfig', ([], {'stream': 'sys.stdout', 'level': 'logging.INFO'}), '(stream=sys.stdout, level=logging.INFO)\n', (101, 140), False, 'import logging\n'), ((234, 283), 'llama_index.GPTSimpleVectorIndex.load_from_disk', 'GPTSimpleVectorIndex.load_from_disk', (['"""index.json"""'], {}), "('index.json')\n", (269, 283), False, 'from llama_index import GPTSimpleVectorIndex\n'), ((172, 212), 'logging.StreamHandler', 'logging.StreamHandler', ([], {'stream': 'sys.stdout'}), '(stream=sys.stdout)\n', (193, 212), False, 'import logging\n'), ((141, 160), 'logging.getLogger', 'logging.getLogger', ([], {}), '()\n', (158, 160), False, 'import logging\n')]