In this example we ask a simple question that gives counts of data.
Video:
Coming soon…
User question: Give me the total number of artists in the data.
VerbaGPT response:
Cost of query: $0.00
Answer:
Total number of artists: 275
Since VerbaGPT comes with an embedding framework, it did not have to be told where to look, only pointed to a SQL server instance that contains many different databases including one that has the Chinook database.
VerbaGPT Message Window
Here is the code in Python to get the total number of artists in the data:
cursor.execute("SELECT COUNT(*) FROM Artist")
result = cursor.fetchone()
print(f"Total number of artists: {result[0]}")
Leave a Reply