Generative AI SQL Chatbot

An LLM-powered chatbot for natural language database queries with extensive observability.

Repository

Repository: GitHub Logo geoffgin/GenAI-SQL-Chatbot

Features

Prerequisites

Installation

  1. Clone the repository and navigate to the directory:
    git clone https://github.com/geoffgin/GenAI-SQL-Chatbot.git
    cd GenAI-SQL-Chatbot
  2. Configure environment variables: Copy .env.example to .env and fill in your API keys and configurations.
  3. Build and start the Docker services (one-off):
    make run
  4. After the installation, simply run:
    make up
  5. Or run the application in developer mode:
    make dev
  6. Shut down the application:
    make down

Chatbot Usage

Go to http://localhost:8501 for the main chatbot interface.

Go to http://localhost:3000 for the Langfuse interface when not running on dev mode.

Architecture

Paper References

Data Source Statement

This project uses the Chinook database, a media store database, for development and testing purposes. However, it can be easily adapted for any enterprise or domain-specific use case.

Evaluation Framework

Located under the eval sub-folder.