Historical Segment Results\nRecast  historical segment results are as follows (in millions; unaudited):\nQuarter Fiscal Year\nRecast Historical Results\nQ1 2022 Q2 2022 Q3 2022 Q4 2022 2021 2022\nOperating income (loss):\nGoogle Services $ 21,973 $ 21,621 $ 18,883 $ 20,222 $ 88,132 $ 82,699 \nGoogle Cloud  (706)  (590)  (440)  (186)  (2,282)  (1,922) \nOther Bets  (835)  (1,339)  (1,225)  (1,237)  (4,051)  (4,636) \nCorporate costs, unallocated(1) (338)  (239)  (83)  (639)  (3,085)  (1,299) \nTotal income from operations $ 20,094 $ 19,453 $ 17,135 $ 18,160 $ 78,714 $ 74,842 \n(1)Includes hedging gains (losses); in fiscal years 2021 and 2022 hedging gains of $149 million and $2.0 billion, respectively.\n8\nHuman: What was Alphabet's revenue?"      ]    }    [llm/end] [1:chain:AgentExecutor > 3:tool:alphabet-earnings > 4:chain:RetrievalQA > 5:chain:StuffDocumentsChain > 6:chain:LLMChain > 7:llm:ChatOpenAI] [1.61s] Exiting LLM run with output:    {      "generations": [        [          {            "text": "Alphabet's revenue for the quarter ended March 31, 2023, was $69,787 million.",            "generation_info": null,            "message": {              "content": "Alphabet's revenue for the quarter ended March 31, 2023, was $69,787 million.",              "additional_kwargs": {},              "example": false            }          }        ]      ],      "llm_output": {        "token_usage": {          "prompt_tokens": 2335,          "completion_tokens": 23,          "total_tokens": 2358        },        "model_name": "gpt-3.5-turbo-0613"      },      "run": null    }    [chain/end] [1:chain:AgentExecutor > 3:tool:alphabet-earnings > 4:chain:RetrievalQA > 5:chain:StuffDocumentsChain > 6:chain:LLMChain] [1.61s] Exiting Chain run with output:    {      "text": "Alphabet's revenue for the quarter ended March 31, 2023, was $69,787 million."    }    [chain/end] [1:chain:AgentExecutor > 3:tool:alphabet-earnings > 4:chain:RetrievalQA > 5:chain:StuffDocumentsChain]
This notebook shows how to use an agent to compare two documents.
This notebook shows how to use an agent to compare two documents. ->: Historical Segment Results\nRecast  historical segment results are as follows (in millions; unaudited):\nQuarter Fiscal Year\nRecast Historical Results\nQ1 2022 Q2 2022 Q3 2022 Q4 2022 2021 2022\nOperating income (loss):\nGoogle Services $ 21,973 $ 21,621 $ 18,883 $ 20,222 $ 88,132 $ 82,699 \nGoogle Cloud  (706)  (590)  (440)  (186)  (2,282)  (1,922) \nOther Bets  (835)  (1,339)  (1,225)  (1,237)  (4,051)  (4,636) \nCorporate costs, unallocated(1) (338)  (239)  (83)  (639)  (3,085)  (1,299) \nTotal income from operations $ 20,094 $ 19,453 $ 17,135 $ 18,160 $ 78,714 $ 74,842 \n(1)Includes hedging gains (losses); in fiscal years 2021 and 2022 hedging gains of $149 million and $2.0 billion, respectively.\n8\nHuman: What was Alphabet's revenue?"      ]    }    [llm/end] [1:chain:AgentExecutor > 3:tool:alphabet-earnings > 4:chain:RetrievalQA > 5:chain:StuffDocumentsChain > 6:chain:LLMChain > 7:llm:ChatOpenAI] [1.61s] Exiting LLM run with output:    {      "generations": [        [          {            "text": "Alphabet's revenue for the quarter ended March 31, 2023, was $69,787 million.",            "generation_info": null,            "message": {              "content": "Alphabet's revenue for the quarter ended March 31, 2023, was $69,787 million.",              "additional_kwargs": {},              "example": false            }          }        ]      ],      "llm_output": {        "token_usage": {          "prompt_tokens": 2335,          "completion_tokens": 23,          "total_tokens": 2358        },        "model_name": "gpt-3.5-turbo-0613"      },      "run": null    }    [chain/end] [1:chain:AgentExecutor > 3:tool:alphabet-earnings > 4:chain:RetrievalQA > 5:chain:StuffDocumentsChain > 6:chain:LLMChain] [1.61s] Exiting Chain run with output:    {      "text": "Alphabet's revenue for the quarter ended March 31, 2023, was $69,787 million."    }    [chain/end] [1:chain:AgentExecutor > 3:tool:alphabet-earnings > 4:chain:RetrievalQA > 5:chain:StuffDocumentsChain]