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

According to Article 1 on page 14 of the document, the purposes of the United Nations Convention against Corruption 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.

Note: The OCR output may have minor variations in formatting or spacing, but the core information remains the same.

Model: gemini-1.5-flash-002
Temperature: 0.2
Max output tokens: 8192
TopK: 40.0
TopP: 0.95