# Financial QA - Deductive

Ask deductive questions about a (long) financial document.

|---|---|
| You can query a model directly and test the results returned when using different parameter values with the Cloud console, or by calling the Vertex AI API directly. - For an example of using the Vertex AI API, see [Quickstart using the Vertex AI API](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/api-quickstart). - To view this sample in the Cloud console: [Go to Google Cloud console](https://console.cloud.google.com/vertex-ai/generative/language/prompt-examples/Financial%20QA%20-%20Deductive) <br /> ||
| #### Prompt Freeform [financial_qa_example_JNJ_2021_10K.pdf](https://storage.mtls.cloud.google.com/cloud-samples-data/generative-ai/pdf/financial_qa_deductive.pdf) How much did net earnings grow from FY2020 to FY2021? #### Response Based on the Consolidated Statements of Earnings on page 48 of the document, the net earnings for Johnson \& Johnson were: - **FY2021:** $20,878 million - **FY2020:** $14,714 million This represents a growth of **$6,164 million** , or approximately **41.9%**, from FY2020 to FY2021. | |---|---| | **Model:** | gemini-2.5-pro | | **Temperature:** | 0.2 | | **Max output tokens:** | 8192 | | **TopK:** | 40.0 | | **TopP:** | 0.95 | |