Thanks Logan, I tried out the huggingface text to sql and it does not work as well as the openai api method. The generated sql queries are wrong. Can you please point me to the place in the llama_index source code where you process the user input and call openai api for text to sql?