code: get_ipython().run_line_magic('pip', 'install llama-index-llms-openai')
  get_ipython().run_line_magic('pip', 'install llama-index-packs-rag-fusion-query-pipeline')
  
  
  get_ipython().system("wget 'https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt' -O 'data/paul_graham/paul_graham_essay.txt' -O pg_essay.txt")
  
  
  from llama_index.core import SimpleDirectoryReader
  
  reader = SimpleDirectoryReader(input_files=["pg_essay.txt"])
  docs = reader.load_data()
  
  
  
  import phoenix as px
  
  px.launch_app()
  import llama_index.core
  
  llama_index.core.set_global_handler("arize_phoenix")
  
  
  
  from llama_index.core.llama_pack import download_llama_pack
  
  
  from llama_index.packs.rag_fusion_query_pipeline import RAGFusionPipelinePack
  
  
  from llama_index.llms.openai import OpenAI
  
  
  pack = RAGFusionPipelinePack(docs, llm=OpenAI(model="gpt-3.5-turbo"))
  
  
  
  from pyvis.network import Network
  
  net = Network(notebook=True, cdn_resources="in_line", directed=True)
  net.from_nx(pack.query_pipeline.dag)
  net.show("rag_dag.html")
  
  
  response = pack.run(query="What did the author do growing up?")
  print(str(response))
apis: llama_index.core.SimpleDirectoryReader llama_index.llms.openai.OpenAI
extract_api: [((432, 483), 'llama_index.core.SimpleDirectoryReader', 'SimpleDirectoryReader', ([], {'input_files': "['pg_essay.txt']"}), "(input_files=['pg_essay.txt'])\n", (453, 483), False, 'from llama_index.core import SimpleDirectoryReader\n'), ((535, 550), 'phoenix.launch_app', 'px.launch_app', ([], {}), '()\n', (548, 550), True, 'import phoenix as px\n'), ((933, 995), 'pyvis.network.Network', 'Network', ([], {'notebook': '(True)', 'cdn_resources': '"""in_line"""', 'directed': '(True)'}), "(notebook=True, cdn_resources='in_line', directed=True)\n", (940, 995), False, 'from pyvis.network import Network\n'), ((858, 887), 'llama_index.llms.openai.OpenAI', 'OpenAI', ([], {'model': '"""gpt-3.5-turbo"""'}), "(model='gpt-3.5-turbo')\n", (864, 887), False, 'from llama_index.llms.openai import OpenAI\n')]