Skip to content

Rushi-Kumar/sql_chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Chain

Uses Langchain and Open AI to extract SQL queries from natural language text and execute them on a database.

Installation

  1. Clone the repository
  2. Install the requirements
  npm install
  1. Run the program
  npm server.js

Usage

API Endpoint : http://localhost:3000/api/v0.0.1/query

Request Body:

{
  "text": "Get the name of the employees who are working in the department with id 1"
}

Response:

{
  "status": "success",
  "data": [
    {
      "name": "John Doe"
    },
    {
      "name": "Jane Doe"
    }
  ]
}

About

SQL using langchain and open AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published