Skip to content

Commit

Permalink
📝 Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
henryhamon committed Jul 29, 2024
1 parent 59b149c commit d8996d7
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat&logo=AdGuard)](LICENSE)

# SQLzilla

SQLzilla leverages the power of Python and AI to simplify data access through natural language SQL query generation, bridging the gap between complex data queries and users with minimal programming experience.

![SQLZilla made by AI](./assets/logo.png)

## Description

SQLzilla is an innovative project that transforms the way users interact with databases. By integrating with InterSystems IRIS, we've crafted a tool that allows even those unfamiliar with SQL to effortlessly extract and analyze data across various tables.
Expand All @@ -13,3 +17,68 @@ We believe SQLzilla is not just a tool, but a movement towards more inclusive an
We hope that SQLzilla serves as a catalyst for change, making data more accessible than ever and inspiring a new wave of users to engage with technology in meaningful ways.

Join us in redefining data interaction and expanding the possibilities of what we can achieve with information at our fingertips.

## Prerequisites

Ensure you have [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [Docker Desktop](https://www.docker.com/products/docker-desktop) installed.

## Installation

### Setting an LLM API Key

To utilize the Large Language Model (LLM) service, you'll need an API key. Currently, the project supports OpenAI's LLM service.

[Obtain your OpenAI API key by creating an account on their platform](https://openai.com/).

#### Configuring Environment Variables

Environment variables are used to store sensitive information like API keys and tokens. These variables need to be set before building the Docker image.

There are two ways to configure these variables:

When launching the Docker container, you can set the `OPENAI_KEY` environment variable using the `-e` flag:

```bash
# OpenAI API key
export OPENAI_KEY=$OPENAI_KEY
```

### Docker

Clone the repository into any local directory:

```bash
$ git clone https://github.com/musketeers-br/sqlzilla.git
```

Open the terminal in this directory and run:

```bash
$ docker-compose build
$ docker-compose up -d
```

### Without Docker

1. Clone this repository.
2. Install dependencies: `pip install -r python/sqlzilla/requirements.txt`
3. Run the app: `streamlit run python/sqlzilla/app.py`

## How to Use It

### Jupyter Notebook Version
1. Add a `.env` file with the API key.
2. Go to [http://localhost:29999/](http://localhost:29999/).

### Web Version
1. Go to [http://localhost:8501/](http://localhost:8501/).
2. Enter your OpenAI API key for the AI assistant.
3. Configure the database connection details.
4. Write SQL queries in the editor or chat window.
5. Click "Execute" to run queries and see results.

## Dream Team

* [José Roberto Pereira](https://community.intersystems.com/user/jos%C3%A9-roberto-pereira-0)
* [Henry Pereira](https://community.intersystems.com/user/henry-pereira)
* [Henrique Dias](https://community.intersystems.com/user/henrique-dias-2)

0 comments on commit d8996d7

Please sign in to comment.