GithubHelp home page GithubHelp logo

yesp2002 / sql_query_generator_using_gemini Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

An AI app which generates SQL query commands when you provide what you want to extract from the database in basic english language

Python 100.00%

sql_query_generator_using_gemini's Introduction

SQL Query Generator using Google Gemini

An AI tool which generates and runs SQL queries on a database when given english input of what you want from the database.

Setup Instructions

1) First, create a python virtual environment

i) Open terminal and go to your desired location for project ii) Create a virtual environment

>>> python -m venv <env_name>

iii) activate your virtual environment

>>> cd <env_name>
>>> cd Scripts
>>> activate
>>> cd ..

iv) Your virtual environment is activated, and you are in your virtual environment directory

2) Get project files and install dependencies in the environment

i) Download the project files and paste it in your folder, or open terminal and run the following

>>> git clone yesp2002/SQL_Query_Generator_using_Gemini.git

ii) Then, install the dependencies required by running the following command

>>> pip install -r requirements.txt

iii) All the python packages required will be installed for running our application

3) Set your Google Gemini API Key

Google Gemini API is free to use and you can access the following website to create your API key https://aistudio.google.com/app/apikey

Once, you get your API key, create a .env file in your directory and paste the following in the file

GOOGLE_API_KEY = "<your-api-key>"

4) Run the Application

i) All the setup work is done, and you can run the app by running the following in terminal

streamlit run app.py

ii) This will open the application in localhost:8501 in browser, where the application is running. iii) Give your english prompts for querying, and the app will give you SQL queries along with the output.

image

Enjoy the application !!!

sql_query_generator_using_gemini's People

Contributors

yesp2002 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.