Northwind NL2SQL is tool designed to bridge the gap between natural language queries and SQL database queries. It takes in user-friendly natural language questions and converts them into structured SQL queries that can be directly executed on a database. This tool aims to simplify the process of querying databases, especially for users who are not familiar with SQL syntax.
- Natural Language Processing (NLP) Integration: Utilizes state-of-the-art NLP techniques to parse and understand user queries.
- SQL Generation: Generates SQL queries based on the parsed natural language input.
- Query Execution: Executes the generated SQL queries on the connected database.
git clone [email protected]:hzucareli/northwind_nl2sql.git
cd northwind_nl2sql
npm i
node runQuestions.js
node runQuestions.js --execute # will execute de queries
- Edit the
.env
file to specify database connection details and OpenAI Key and optionally the LangSmith key for better monitoring the LangChain.
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.