Continuing the discussion from Open AI querying database:
I was wondering the same thing as Andrew described in the post above (now closed).
I admit I haven't read up on Vectors which are mentioned in the answer, but that doesn't seem to be what I want.
My expectation (and I assume Andrew's) is that the AI should be able to fulfill the role of a "smart" person, who acts as a go-between, extracting data from the database according to requests from a user.
The AI should be able to query the database, acquire all the table information and relationships between them. It should then be able to accept a common language enquiry from a user, and generate the corresponding response from the available data.
Obviously the enquiry would have to contain valid keywords matching the keys/data in the tables. Then the AI should be able to take care of the more "technical" side of creating the right queries and handling the response from the database.
Eg. we ask... "Show me all the bookings for 2025"
The AI understand that "bookings" information is in the Bookings table and that 2025 is a year, hence stored as key "Year".
Being smart the AI asks "Sure - what would you like to know about those bookings?"
We reply "Show me the start date and the customer who made the booking."
So the AI figures out it needs to find keys like "start date" and "customer". It can query the bookings table accordingly, finding start dates, and resolves customer_Id to customer_name via JOIN or separate query to the customer table.
And so on... add columns, create summations, add or remove data...
Isn't that something an AI should be able to do?