# Extract information from a chart

Generate a description of a diagram, so that it can be indexed and searched over.

|---|---|
| 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/Extract%20information%20from%20a%20chart) <br /> ||
| #### Prompt Freeform Can you convert the detailed information from this chart to a table? #### Response Of course. Here is the data from the chart presented in a table format. **Share of People Vaccinated Against COVID-19, Sep 2, 2021** *Source: Our World in Data* | Country | Share of people fully vaccinated (%) | Share of people only partly vaccinated (%) | Total share of people vaccinated (at least one dose) (%) | |---|---|---|---| | China | 62% | 13% | 74% | | Italy | 61% | 9.7% | 71% | | Germany | 60% | 4.5% | 65% | | United States | 52% | 9.3% | 61% | | Mexico | 27% | 18% | 45% | | Taiwan | 4% | 38% | 42% | | India | 11% | 26% | 37% | | Thailand | 11% | 22% | 33% | | Indonesia | 13% | 10% | 24% | | Vietnam | 2.8% | 15% | 18% | **Note:** As stated in the chart, alternative definitions of a full vaccination (e.g., having been infected with SARS-CoV-2 and having 1 dose of a 2-dose protocol) are ignored to maximize comparability between countries. | |---|---| | **Model:** | gemini-2.5-pro | | **Temperature:** | 0.2 | | **Max output tokens:** | 8192 | | **TopK:** | 40.0 | | **TopP:** | 0.95 | |