TIGZIG: Co-Analyst - SQL-Rooms with DuckDB - Local In-Browser | TIGZIG Co-Analyst
Try the App Live

SQL-Rooms with DuckDB - Local In-Browser

Natural Language to SQL with DuckDB. Data stays local to your browser.

Features

Additional Information

TBD

Content to be added.

About the App

SQL Rooms AI @ Tigzig - User Guide

1. Set Up API Keys (Required)

Before using SQL Rooms AI, you must configure your API key:

  1. Click the API Keys button in the top menu bar
  2. Enter your API key for at least one provider:
    • OpenAI - Requires paid account
    • Google Gemini - FREE tier available (recommended for getting started)
    • Anthropic Claude - Requires paid account
  3. Click Save Keys

Need an API key? Click the "Get API Key" link next to each provider in the API Keys modal.

2. Select AI Model

After setting up your API key, choose your preferred model from the dropdown in the top menu:

You can switch models at any time.

3. Quick Start Example

To see how SQL Rooms AI works, check the saved session "Tour de France cycling analysis" in the History dropdown:

Example queries you can try:


Core Features

Natural Language Queries

Simply type your question in the input box at the bottom of the screen and press Enter. The AI will:

  1. Understand your request
  2. Generate and execute SQL queries
  3. Display results in tables or charts
  4. Explain the analysis

How AI Understands Your Data:

For New Datasets:

Data Import

Import File (Button at top of Data Sources panel)

Upload data files in multiple formats:

Auto-Delimiter Detection:

How to import:

  1. Click Import File button
  2. Select one or more files
  3. Files are loaded into tables (table names derived from file names)
  4. All data stays in your browser - nothing uploaded to servers

Import Database (Button at bottom of Data Sources panel)

Import complete DuckDB database files (.db or .duckdb):

  1. Click Import Database
  2. Select a .db or .duckdb file
  3. Review/edit the schema name
  4. Click Import
  5. All tables from the database are imported into a new schema

What happens:

Data Export

Export Table

Export individual tables in your preferred format:

  1. Click Export Table button (bottom of Data Sources panel)
  2. Select the table from dropdown
  3. Choose format:
    • CSV - Comma-separated, compatible with Excel/spreadsheets
    • Pipe-delimited (TXT) - Alternative delimiter for data with commas
    • Parquet - Compressed binary format for analytics tools
  4. Click Export
  5. File downloads with timestamp (e.g., tablename_2025-10-06.csv)

Download Database

Export your entire database as a compressed archive:

  1. Click Download Database button (bottom of Data Sources panel)
  2. System creates a ZIP file containing:
    • schema.sql - CREATE TABLE statements for all tables
    • table1.parquet, table2.parquet, etc. - Table data in Parquet format
    • README.md - Instructions for using the exported data
  3. ZIP file downloads automatically

Benefits:

Session Management

History Dropdown (Top menu bar)

Session Limits:

Current Session

Data Management

Clear All Data (Bottom of Data Sources panel)

Permanently deletes:

Important:

Database Panel (Left Side)

The database icon button toggles the Data Sources panel showing:

SQL Editor (Terminal Icon)

Click the terminal icon in the top menu to:


Charts and Visualizations

To create charts, simply ask in natural language:

The AI will:

  1. Query the necessary data
  2. Generate appropriate visualization
  3. Display interactive chart
  4. Explain the visualization

Chart Types Available:


Data Privacy

All Local Processing:

What Gets Sent to AI:

What Does NOT Get Sent:


Tips for Effective Use

  1. Start with data exploration for new datasets:

    • "SUMMARIZE tablename"
    • "Show me the first 20 rows"
    • "What are the unique values in column_name?"
  2. Be specific in your requests:

    • Good: "Show me top 10 customers by total sales in 2024"
    • Less specific: "Show me some customer data"
  3. Reference table names when working with multiple tables:

    • "Join sales and customers tables on customer_id"
    • "Compare metrics between table1 and table2"
  4. Use the History dropdown to revisit previous analyses

  5. Switch models if you get better results with different AI providers

  6. Save complex queries by creating new sessions for different analysis tasks


Troubleshooting

AI not responding?

Import failed?

Chart not displaying?

Session stuck?

Source Code and Build Guides

Build It

GitHub Repo:
https://github.com/amararun/sql-rooms-tigzig-s

Refer to the README and App Architecture deployment for further customizations