Skip to content

This repo contains all the files behind the architecture to convert natural language to SQL model and provides query.

Notifications You must be signed in to change notification settings

AnupDangi/Hackathon-NL2SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackathon-NL2SQL

Overview

Hackathon-NL2SQL is a project that converts natural language queries into SQL queries, allowing users to interact with their databases using simple text inputs.

Features

  • Node.js with EJS templating for rendering dynamic web pages.
  • Google Gemini API integration for query understanding and processing.
  • SQL database support for executing and retrieving query results.
  • Connect to your local database and execute SQL queries effortlessly.
  • Formatted result output including a table displaying query results.

Installation

# Clone the repository
git clone https://github.com/AnupDangi/Hackathon-NL2SQL.git
cd Hackathon-NL2SQL

# Install dependencies
npm install

Usage

  1. Start the application:
    npm server.js
  2. Open your browser and navigate to http://localhost:3000.
  3. Enter a natural language query, and the system will generate and execute the corresponding SQL query.
  4. View results in a structured table format.

API Integration

  • This project integrates Google Gemini API for natural language query processing.
  • Ensure you have a valid API key and configure it in your environment.

Contributing

Feel free to contribute to this project by submitting issues or pull requests!

License

This project is licensed under the MIT License.

##Output Results image 800d8d97-24be-46a6-85ad-976c424f0a45 0d0b4c37-3eec-4572-92c1-21f9e7f26e19 20235022-7aae-4933-88b3-46e619e6cbc6 383a266d-a9fd-402b-93a7-a07f32be8ccb

For more details, visit the repository: Hackathon-NL2SQL.

About

This repo contains all the files behind the architecture to convert natural language to SQL model and provides query.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published