Skip to content

Thelin90/datapains-vanna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datapains Vanna AI Demo

This demo is based on the initial trino setup made here.

Once you setup trino on your local k8s cluster, you can continue with this demo.

This is highly experimental, and VannaAI does not explicitly support trino, but I have worked around it with their run_sql functionality.

Requirements

  • trino see comment above
  • python3.11
  • uv
  • make
  • gemini (free tier)

Vanna AI Caveat

Since I run on mac, I had to pin:

kaleido==0.2.1 to avoid issue:

When installing vanna it uses 0.2.1.post1. Hence giving error:

  • error: Distribution kaleido==0.2.1.post1 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform`

Setup Gemini

Head out to google AI Studio And Create an API key: https://aistudio.google.com

Once you have this you need to make sure either globally, or within your session you have:

export GEMINI_API_KEY=...
export GEMINI_MODEL=... # example gemini-2.0-flash

The rest of the demo assumes this.

Data Source - Table Definitions

fact_video_plays

Fact table of video playback events. References dimensions: dim_videos (video_id), dim_categories (category_id), dim_creators (creator_id), dim_users (user_id).

dim_videos

Dimension table describing videos

dim_categories

Dimension table categorising video content

dim_creators

Dimension table containing video creator details

dim_users

Dimension table describing user/viewer metadata

Context

                  dim_categories
                        │
                        │
dim_creators─────fact_video_plays─────dim_videos
                        │
                        │
                    dim_users

Setup

uv venv
make setup-environment

Run App

Run with training

make run-app ARG=--train

Run without training

make run-app

Access UI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors