Basic Data Summary

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]}")


Posted

in

,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *