Unlock the Power of SQL Queries with GPT and OpenAI API - Build from Scratch

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for your tutorials, they have been very helpful and informative.

You mentioned that it's better not to send a json to ChatGPT as "it can do less", and you advised to output the data to string.

I just want to understand if that is still the case, and why is a String the better option.

I don't mind either way, I'm learning so just interested to know why.

Thanks again for the good tutorials.

jlfguthrie
Автор

This concept is fine for basic queries against a simple db where table and column names give clear info about their purposes and likely relationships. Very few real world dbs conform to these requirements. Complex queries and obscure names are far more common, rendering this method essentially useless for any serious business case.

ruqzboq
Автор

Seems like Generative AI helps in generating any kind of code.. Guessing there is no need to write any code and the generated code need to be executed and tested which generative AI does not do.. :)

bxvlymt
Автор

well it could be a nice idea to give the source code for what you are doing so others can practice ?is there a script which will be able to make gpt to simple reply by asking it not techical questions ? i mean is there a way to avoid all this coding and go straight to the point e.g describe me the sql database or how many tables are there etc and get reply from gpt?

gnosisdg