Skip to content

zeelapatel/TextToSqlGenerativeAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-to-SQL Generative AI with Google Gemini API

This project demonstrates how to use the Google Gemini API to convert natural language text into SQL queries using Python. The application is designed to take user input in the form of natural language queries and return the corresponding SQL statements, facilitating easier interaction with databases.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have Python 3.7 or later installed on your local machine.
  • You have a Google Cloud account with access to the Google Gemini API.
  • You have set up authentication for Google Cloud and obtained the necessary API credentials.

Installation

  1. Clone the Repository

git clone https://github.com/your-username/text-to-sql-gemini.git


cd text-to-sql-gemini

  1. Install the Required Packages

pip install -r requirements.txt

  1. Set Up Google Cloud Authentication

Ensure that you have your Google Cloud service account key file. Set the environment variable to point to your service account key file:


export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/service-account-file.json"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published