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: