Back to directory
Dataherald avatar

dataherald

Interact with your SQL database, Natural Language to SQL using LLMs. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/Dataherald/dataherald.git

3,646

Stars

261

Forks

24

Watchers

Apache-2.0

License

Dataherald monorepo

Dataherald logo

Query your relational data in natural language.

Discord | License | Docs | Homepage

Dataherald is a natural language-to-SQL engine built for enterprise-level question answering over relational data. It allows you to set up an API from your database that can answer questions in plain English. You can use Dataherald to:

  • Allow business users to get insights from the data warehouse without going through a data analyst
  • Enable Q+A from your production DBs inside your SaaS application
  • Create a ChatGPT plug-in from your proprietary data

This repository contains four components under /services which can be used together to set up an end-to-end Dataherald deployment:

  1. Engine: The core natural language-to-SQL engine. If you would like to use the dataherald API without users or authentication, running the engine will suffice.
  2. Enterprise: The application API layer which adds authentication, organizations and users, and other business logic to Dataherald.
  3. Admin-console: The front-end component of Dataherald which allows a GUI for configuration and observability. You will need to run both engine and enterprise for the admin-console to work.
  4. Slackbot: A slackbot which allows users from a slack channel to interact with dataherald. Requires both engine and enterprise to run.

For more information on each component, please take a look at their README.md files.

Running locally

Each component in the /services directory has its own docker-compose.yml file. To set up the environment, follow these steps:

  1. Set Environment Variables: Each service requires specific environment variables. Refer to the .env.example file in each service directory and create a .env file with the necessary values.

    For the Next.js front-end app is .env.local

  2. Run Services: You can run all the services using a single script located in the root directory. This script creates a common Docker network and runs each service in detached mode.

Run the script to start all services:

sh docker-run.sh

Contributing

As an open-source project in a rapidly developing field, we are open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see here.

Releases

Apr 30, 2024

v1.0.3

Download .zip

Release Notes for Version 1.0.3 What's New

  1. New features

Added Redshift support c8e55a2 Added multi-schemas support for db connections, it only works for Postgres, Bigquery, Snowflake and Databrick...

Apr 3, 2024

v1.0.2

Download .zip

Release Notes for Version 1.0.2 What's New

  1. New features

Adds Astra vector store support 6f39892 Adds MS SQL Server support 078c17d Adds Streaming endpoint to show intermediate steps 1205d8a Adds s...

Mar 4, 2024

v1.0.1

Download .zip

Release Notes for Version 1.0.1 What's New

  1. New features

Added clickhouse support d494fed MariaDB/MySQL support officially added and documented. 7b86ad3 Added a refresh endpoint (POST /api/v1/table...

Jan 16, 2024

v01.0.0

Download .zip

Release Notes for Version 1.0.0 What's New

  1. New Resources, Attributes, and Endpoints

Finetuning: One of our new exciting features is automatic finetuning GPT family models on your golden questions/...

Nov 13, 2023

v0.0.6

Download .zip

What's Changed

  1. Changes in POST /api/v1/responses endpoint: If the sql_query body parameter is not set, the response is regenerated. This process generates new values for sql_query, sql_result, and...