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.

Prompt Freeform

financial_qa_example_JNJ_2021_10K.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