Giter VIP home page Giter VIP logo

f0lk3n / na2sql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ai-ank/na2sql

0.0 0.0 0.0 96 KB

Welcome to the Natural Language to SQL demo project using LlamaIndex! This application is designed to demonstrate the innovative use of Large Language Models (LLMs) in translating natural language queries into SQL queries, and fetching meaningful insights from a database.

Home Page: https://www.linkedin.com/in/harshadsuryawanshi/

Python 100.00%

na2sql's Introduction

Natural Language to SQL(Na2SQL): Extracting Insights from Databases using OpenaAI GPT3.5 and Llamaindex

Welcome to the Natural Language to SQL demo project using LlamaIndex! This application is designed to demonstrate the innovative use of Large Language Models (LLMs) in translating natural language queries into SQL queries, and fetching meaningful insights from a database.

Demo Features

  • Natural Language Understanding: Converts user-inputted natural language queries into accurate SQL queries.
  • Data Retrieval and Analysis: Retrieves results from the database and interprets them to provide meaningful insights.
  • Accessibility: Designed for users with no SQL background to easily interact with and extract insights from databases.

Potential Enhancements

  • Expansion to include more diverse data sources and databases.
  • Advanced natural language processing for more intricate query handling.

Tools and Technologies Used

  • LLM: OpenAI's GPT-3.5
  • LLM Orchestration: LlamaIndex
  • Data Management: SQLDatabase with SQLite
  • UI Framework: Streamlit

Project Structure

  • app.py: The main application script for the Streamlit app.
  • requirements.txt: Lists the Python packages required for this project.
  • storage/: Directory contains the database file and related resources.

Setup and Usage

Clone the Repository

git clone https://github.com/YourGitHubUsername/your-repository-name

Install Required Packages

pip install -r requirements.txt

Run the Streamlit App

streamlit run app.py

Feedback and Contributions

Feel free to raise issues or submit pull requests if you think something can be improved or added. Your feedback is highly appreciated!

Developed by Harshad Suryawanshi

If you find this project useful, consider giving it a โญ on GitHub!

na2sql's People

Contributors

ai-ank 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.