# README

This is a POC to demonstrate the capabilities of Generative AI in answering questions
about our Insights Data.


## GEMINI API

It's not available in the UK yet. If you need to interact with it, hop onto a dev box and:

1. Set up a `.env` file with `GEMINI_API_KEY=`
2. Run:
```sh
source .env
curl https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$GEMINI_API_KEY \
    -H 'Content-Type: application/json' \
    -X POST \
    -d '{
      "contents": [{
        "parts":[{
          "text": "What explains the popularity of The Last Dinner Party, the UK band?"}]}]}' 2> /dev/null
```


## Demo Prompts

Please give me a list of all the tracks that have increased the most amount of streams in the last week on Spotify in the United States market that have at least 10000 streams per day

Please write a query that gets the stores we have analytics data for

What explains the popularity of The Last Dinner Party, the UK band?

How recent is your training data?

Write a query to get the top ten highest streamed tracks on the store spotify over the last week. As part of this query, provide a breakdown by SOS.


