Skip to main navigation Skip to search Skip to main content

Zero-Shot Prompting Strategies for Table Question Answering with a Low-Resource Language

Research output: Contribution to journalArticlepeer-review

118 Downloads (Pure)

Abstract

This work explores the application of zero-shot prompting strategies for table question answering (TQA) in Portuguese, focusing specifically on the Text2SQL task. This task involves translating questions posed in natural language into Structured Query Language (SQL) queries, which can be executed against a database to answer the original question. Given the popularity of relational databases across various domains, advancements in this field can substantially impact the accessibility and democratization of data as simpler and more intuitive interfaces for database interaction are developed. Despite this significant potential, progress in developing Portuguese TQA solutions remains limited. The proposed approach leverages Large Language Models (LLMs)—specifically the GPT-3.5 and GPT-4 models—through zero-shot prompting. The primary objectives are to assess the effectiveness of such LLMs in this task and to identify the most suitable prompt styles. These are evaluated using a Portuguese translation of the popular Spider Text2SQL benchmark. Results reveal that the proposed approach can generate adequate SQL queries to answer Portuguese language questions about various databases, mainly when using GPT-4. The findings suggest that including schema information and database content in the prompts is critical for satisfactory outcomes.
Original languageEnglish
Pages (from-to)2003-2022
Number of pages20
JournalEmerging Science Journal
Volume8
Issue number5
DOIs
Publication statusPublished - Oct 2024

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 9 - Industry, Innovation, and Infrastructure
    SDG 9 Industry, Innovation, and Infrastructure

Keywords

  • Text to SQL
  • Natural Language Processing
  • Computational Linguistics
  • Zero-shot Prompting

Fingerprint

Dive into the research topics of 'Zero-Shot Prompting Strategies for Table Question Answering with a Low-Resource Language'. Together they form a unique fingerprint.

Cite this