# Document question answering

Answer question(s) over a 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/Document%20question%20answering) <br /> ||
| #### Prompt Freeform [certificate_of_incoporation.pdf](https://storage.mtls.cloud.google.com/cloud-samples-data/generative-ai/pdf/certificate_of_incoporation.pdf) What's the exact date that the certificate of incorporation / authority be revoked? Explain your logic. #### Response Based on the information in the letter, the exact date the certificate of incorporation/authority will be revoked is **August 18, 2023**. Here is the logic: 1. **Notice Date:** The letter is dated **June 19, 2023**. 2. **Revocation Period:** The letter states the certificate will be revoked "**after 60 days from the date of this notice**". 3. **Calculation:** To find the revocation date, we need to add 60 days to June 19, 2023. - Days remaining in June: 11 (June 20 - June 30) - Days in July: 31 - Total days passed by the end of July: 11 + 31 = 42 days. - Days remaining to reach 60: 60 - 42 = 18 days. - Adding these 18 days to the beginning of August brings us to **August 18, 2023**. Therefore, the 60-day period concludes on August 18, 2023, which is the date the revocation would take effect. | |---|---| | **Model:** | gemini-2.5-pro | | **Temperature:** | 0.2 | | **Max output tokens:** | 8192 | | **TopK:** | 40.0 | | **TopP:** | 0.95 | |