File size: 1,597 Bytes
10927a5
c3f9bba
10927a5
 
2d671a2
10927a5
 
 
 
7114af0
2d671a2
10927a5
 
7114af0
2d671a2
7114af0
2d671a2
7114af0
 
2d671a2
7114af0
2d671a2
7114af0
 
 
 
 
2d671a2
7114af0
 
 
 
 
2d671a2
7114af0
2d671a2
7114af0
2d671a2
 
 
 
7114af0
2d671a2
 
 
 
7114af0
 
 
 
 
2d671a2
7114af0
2d671a2
 
 
 
7114af0
2d671a2
7114af0
 
 
 
 
2d671a2
7114af0
2d671a2
7114af0
2d671a2
 
 
7114af0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
title: Viz LLM
emoji: πŸ“Š
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
short_description: AI assistant for visualization guidance and chart generation
license: mit
---

# πŸ“Š Viz LLM

AI-powered data visualization assistant with two modes:

- **πŸ’‘ Ideation Mode**: Get design recommendations based on research and best practices
- **πŸ“Š Chart Generation Mode**: Upload CSV data and automatically generate publication-ready charts

## Features

**Ideation Mode:**
- Research-backed visualization guidance
- Chart type recommendations
- Design best practices and accessibility advice
- Powered by RAG with Jina-CLIP-v2 embeddings

**Chart Generation Mode:**
- Upload CSV data
- AI analyzes your data and selects optimal chart type
- Automatic chart creation via Datawrapper API
- Publication-ready visualizations with one click

## Quick Start

1. **Install dependencies:**
   ```bash
   pip install -r requirements.txt
   ```

2. **Set up environment variables:**
   ```bash
   cp .env.example .env
   ```

   Required:
   - `SUPABASE_URL` - Your Supabase project URL
   - `SUPABASE_KEY` - Your Supabase anon key
   - `HF_TOKEN` - Hugging Face API token
   - `DATAWRAPPER_ACCESS_TOKEN` - Datawrapper API token

3. **Run the app:**
   ```bash
   python app.py
   ```

## Technology Stack

- **UI**: Gradio
- **Vector Database**: Supabase PGVector
- **Embeddings**: Jina-CLIP-v2
- **LLM**: Llama 3.1 via Hugging Face Inference Providers
- **Charts**: Datawrapper API

## License

MIT License

---

Built for the data visualization community