acmeyer / sql_gpt

Use GPT-3 to query a PostgreSQL database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sql_gpt

Use GPT-3 to query a PostgreSQL database.

To run:

  • Set up environment variables for a PostsgreSQL database
  • Open a terminal and run python3 main.py
  • Ask it a question!

Areas for improvement:

  • Clean/consolidate the data for specific dataset, address the quirks
  • Update prompt with more database specifics or fine tune a model
  • Tweak the model's parameters to see if better results can be obtained
  • Add more steps in the "thinking process" for better problem tackling
  • Get it to be able to retry again based on error messages

Various inspiration for this:

About

Use GPT-3 to query a PostgreSQL database.


Languages

Language:Python 100.0%