Skip to content

AthiraSreenath/DatabaseQueries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

DatabaseQueries

Query a database using a natural language query

Most of us have been querying the databases using a query language, mostly SQL.

In this project we see how the large language models and the langchain agents can provide a completely new, natural language based interface to the database.

Setup

We will need the following:

  • A relational database server, such as mysql https://www.mysql.com/

  • Create a schema named foodmart in the database server.

  • Uncompress and untar the script: footmart_mysql.tar.gz and use it to import the data into your foodmart schema.

mysql> use foodmart;
mysql> source foodmart_mysql.sql;

Getting started

We use the sql-agent from the langchain, and the SqlDatabaseToolkit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages