© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
P. MartraLarge Language Models Projectshttps://doi.org/10.1007/979-8-8688-0515-8_6

6. Natural Language to SQL

Pere Martra1  
(1)
Barcelona, Spain
 

In the first chapter of this book, you saw a very naive approach to creating an NL2SQL system. In this project, since it’s a bit more serious, you’ll create the prompt by following the guidelines in a paper from Ohio University: Shuaichen Chang, Eric Fosler-Lussier (2023). “How to Prompt LLMs for Text-to-SQL.” arXiv:2305.11853 [cs.CL].

This paper is incredibly easy to read and understand, so I recommend that you not only follow this chapter but also download the paper and take a look at it yourself.

“This paper investigates ...

Get Large Language Models Projects: Apply and Implement Strategies for Large Language Models now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.