dpfried / incoder

Generative model for code infilling and synthesis
295 stars 24 forks source link

Generating SQL statements (Discussion-Topic) #11

Closed OleApp closed 2 years ago

OleApp commented 2 years ago

Hi all!

I am trying to generate SQL statements with the InCoder model. The first attempts look very promising! Does anyone have an idea how I can prompt the model with my database structure? Something trivial like what tables and attributes are there.

Thanks for any food for thought! Greetings, Ole

dpfried commented 2 years ago

Hi Ole, Thanks for your interest! Perhaps others could weigh in here as well, but I would recommend looking the setup that Freda and some of us used in this paper: https://arxiv.org/abs/2204.11454, https://github.com/facebookresearch/mbr-exec for the Spider experiments. I am not sure whether this formatting would work well with InCoder, but it might.

image
OleApp commented 2 years ago

Hi @dpfried! Thank you very much for your response and the hint! It works like a charm! It was possible for me to generate even nested queries!

Best regards, Ole!