This repository contains research and experiments on using Large Language Models (LLMs) to convert natural language questions into SQL queries, execute them, and return a natural language answer (Text-to-SQL-to-Text).
The primary experiments are conducted in the Experiment_setup.ipynb notebook.
The project explores a Text-to-SQL-to-Text pipeline:
- A user asks a question in natural language.
- An LLM generates the corresponding SQL query.
- The SQL query is executed against a database.
- The results are used to generate a final natural language answer for the user.
- Experiment results, including the question, generated SQL, and final answer, are logged to an Excel file for analysis.