code: from llama_index import VectorStoreIndex, SimpleDirectoryReader, LLMPredictor, set_global_service_context, ServiceContext
  from llama_index.llms import LlamaCPP
  
  llm = LlamaCPP(model_path="./models/llama-2-13b-chat.Q4_0.gguf")
  llm_predictor = LLMPredictor(llm=llm)
  
  service_context = ServiceContext.from_defaults(llm_predictor=llm_predictor)
  
  set_global_service_context(service_context=service_context)
  
  documents = SimpleDirectoryReader('data').load_data()
  
  index = VectorStoreIndex.from_documents(documents, show_progress=True)
  
  query_engine = index.as_query_engine()
   
  response = query_engine.query("¿Qué tal es la carrera de Administración de Empresas?")
  print(response)
  response = query_engine.query("¿Qué tal es la carrera de Comercio Exterior?")
  print(response)
  
  index.storage_context.persist("./storage")
  
apis: llama_index.VectorStoreIndex.from_documents llama_index.LLMPredictor llama_index.ServiceContext.from_defaults llama_index.SimpleDirectoryReader llama_index.llms.LlamaCPP llama_index.set_global_service_context
extract_api: [((167, 225), 'llama_index.llms.LlamaCPP', 'LlamaCPP', ([], {'model_path': '"""./models/llama-2-13b-chat.Q4_0.gguf"""'}), "(model_path='./models/llama-2-13b-chat.Q4_0.gguf')\n", (175, 225), False, 'from llama_index.llms import LlamaCPP\n'), ((242, 263), 'llama_index.LLMPredictor', 'LLMPredictor', ([], {'llm': 'llm'}), '(llm=llm)\n', (254, 263), False, 'from llama_index import VectorStoreIndex, SimpleDirectoryReader, LLMPredictor, set_global_service_context, ServiceContext\n'), ((283, 340), 'llama_index.ServiceContext.from_defaults', 'ServiceContext.from_defaults', ([], {'llm_predictor': 'llm_predictor'}), '(llm_predictor=llm_predictor)\n', (311, 340), False, 'from llama_index import VectorStoreIndex, SimpleDirectoryReader, LLMPredictor, set_global_service_context, ServiceContext\n'), ((342, 401), 'llama_index.set_global_service_context', 'set_global_service_context', ([], {'service_context': 'service_context'}), '(service_context=service_context)\n', (368, 401), False, 'from llama_index import VectorStoreIndex, SimpleDirectoryReader, LLMPredictor, set_global_service_context, ServiceContext\n'), ((466, 528), 'llama_index.VectorStoreIndex.from_documents', 'VectorStoreIndex.from_documents', (['documents'], {'show_progress': '(True)'}), '(documents, show_progress=True)\n', (497, 528), False, 'from llama_index import VectorStoreIndex, SimpleDirectoryReader, LLMPredictor, set_global_service_context, ServiceContext\n'), ((415, 444), 'llama_index.SimpleDirectoryReader', 'SimpleDirectoryReader', (['"""data"""'], {}), "('data')\n", (436, 444), False, 'from llama_index import VectorStoreIndex, SimpleDirectoryReader, LLMPredictor, set_global_service_context, ServiceContext\n')]