Re:Show HN: Natural-SQL-7B, a strong text-to-SQL model
by bm-rf on Monday February 05, 2024 @01:55PM
(#39265295)
Usually you include the database schema in the context, usually by showing the CREATE statement for the tables you want to query. I've also found that including comments in the CREATE sql can guide the model somewhat. The best approach is probably to finetune one of these models using curated questions for your database.
[ Parent
| on HN ]
There are no comments on this comment yet.