defog-ai / sqlcoder

SoTA LLM for converting natural language questions to SQL queries
Apache License 2.0
3.42k stars 218 forks source link

Any roadmap to generalize to more type of database? #62

Closed zhouyu5 closed 10 months ago

zhouyu5 commented 10 months ago

Hi,

As the #12 suggested, sqlcoder is trained to generate PostgreSQL.

Do you have any plan to generalize it to more types of database? Such as MySQL, H2, SQLite, Hive.

An open: is there any other cheap ways to achieve it? (Normally, Fine-tuning is expensive)

rishsriv commented 10 months ago

Hi there, we do not have immediate plans to release models for other databases – but models for other MySQL, Snowflake, Bigquery, and Databricks are currently available by via our hosted API.

However, you can try to prompt the model to only generate valid MySQL and see if that helps

zhouyu5 commented 10 months ago

Thanks for replying.