Extract Dates & Events

Extract dates and description of events in chronological order from a paragraph.

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

Extract all the dates from the following text and list them in chronological order. Place them in bullet points. Beside each date write only one sentence explaining what happened on that date.

Born in the German Empire, Einstein moved to Switzerland in 1895, forsaking his German citizenship (as a subject of the Kingdom of Württemberg) the following year. In 1897, at the age of seventeen, he enrolled in the mathematics and physics teaching diploma program at the Swiss federal polytechnic school in Zürich, graduating in 1900. In 1901, he acquired Swiss citizenship, which he kept for the rest of his life. In 1903, he secured a permanent position at the Swiss Patent Office in Bern. In 1905, he submitted a successful PhD dissertation to the University of Zurich. In 1914, he moved to Berlin in order to join the Prussian Academy of Sciences and the Humboldt University of Berlin. In 1917, he became director of the Kaiser Wilhelm Institute for Physics; he also became a German citizen again, this time as a subject of the Kingdom of Prussia.

Response

Here are the dates from the text in chronological order, with a brief explanation of what happened on each date:

  • 1895: Einstein moved to Switzerland.
  • 1896: Einstein renounced his German citizenship.
  • 1897: Einstein enrolled in the mathematics and physics teaching diploma program at the Swiss federal polytechnic school in Zürich.
  • 1900: Einstein graduated from the Swiss federal polytechnic school in Zürich.
  • 1901: Einstein acquired Swiss citizenship.
  • 1903: Einstein secured a permanent position at the Swiss Patent Office in Bern.
  • 1905: Einstein submitted a successful PhD dissertation to the University of Zurich.
  • 1914: Einstein moved to Berlin to join the Prussian Academy of Sciences and the Humboldt University of Berlin.
  • 1917: Einstein became director of the Kaiser Wilhelm Institute for Physics and regained German citizenship.
Model: gemini-1.5-flash-001
Temperature: 1
Max output tokens: 8192
TopK: 40
TopP: 0.95