Legal QA - Extractive

Ask extractive questions about a (long) legal 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

legal_qa_long_context_extractive.pdf

What are the purposes of the United Nations Convention against Corruption as stated in Article 1? Indicate where this information resides in the document by specifying the page number.

Response

Based on the document provided, the purposes of the United Nations Convention against Corruption are stated in Article 1. Statement of purpose on page 14.

The purposes are:

(a) To promote and strengthen measures to prevent and combat corruption more efficiently and effectively;

(b) To promote, facilitate and support international cooperation and technical assistance in the prevention of and fight against corruption, including in asset recovery;

(c) To promote integrity, accountability and proper management of public affairs and public property.

Model: gemini-2.5-pro
Temperature: 0.2
Max output tokens: 8192
TopK: 40.0
TopP: 0.95