Giter Club home page Giter Club logo

sqlassistai's Introduction

SQLAssistAI

SQLAssistAI harnesses OpenAI's GPT models and Jinja templates for evaluating SQL queries, offering insights and improvements through Python-driven parsing of AI outputs, streamlining query optimization for developers and data analysts.

Technical Stack

  • Python: Serves as the backbone of the project, orchestrating interactions with the OpenAI API, processing AI-generated responses, and handling the overall logic and data flow.
  • Jinja: Facilitates dynamic and flexible generation of prompts, allowing for tailored queries to the AI model based on user-defined templates.
  • OpenAI API: Connects to GPT models, tapping into cutting-edge AI for query evaluation and analysis.

Setup and Installation

  1. Clone the Project
git clone https://github.com/yourusername/SQLAssistAI.git
cd SQLAssistAI
  1. Environment Setup
python3 -m venv env
source env/bin/activate  # On macOS and Linux
.\env\Scripts\activate   # On Windows

Configuration

  • OpenAI API Key: Place your API key in a .env file at the project root:
OPENAI_API_KEY=your_api_key_here

Usage

  • Run SQLAssistAI to evaluate your SQL queries through a simple command:
python query.py path/to/template.jinja

sqlassistai's People

Contributors

sijunchen avatar

Watchers

SIjun Chen 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.