documents = SimpleDirectoryReader('/home/ubuntu/llama_index/examples/paul_graham_essay/data').load_data() parser = SimpleNodeParser() nodes = parser.get_nodes_from_documents(documents) index = GPTSimpleKeywordTableIndex(nodes, service_context=service_context)