GithubHelp home page GithubHelp logo

ishaanshettigar / text2sql-query-bot Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 0.0 4.6 MB

Creating a bot that harnesses the power of LLM's like Llama 2 to convert natural language queries to SQL queries using various techniques like in context learning and PEFT

Python 74.07% HTML 1.65% JavaScript 17.11% CSS 7.16%
chromadb gpt-4 langchain llama2 llm openai sql vectorization

text2sql-query-bot's Introduction

Ishaan Shettigar

๐Ÿ‘‹ Hello! I'm Ishaan Shettigar, I'm currently in my final year studying CSE at PES University, Bangalore.

About Me

  • ๐Ÿ”ญ I'm currently working on a computer vision project that involves detecting osteoporosis and osteoarthritis from knee X-ray images as well as a project that converts natural language queries into valid SQL queries using generative AI.
  • ๐ŸŒฑ I'm continuously learning and exploring, my fields of interest include GenerativeAI, Crypto/Web3, AI/ML and FullStack Web Dev.
  • ๐Ÿ‘ฏ I'm currently learning React and would love to contribute to any open-source repositories to further my understanding in it.

Technologies I Love

  • Languages: Python, JavaScript, C/C++, Solidity (Ethereum), Java
  • Frameworks: React (currently learning), Node.js, MERN, FastAPI, Django
  • Tools: Git, OpenCV, pandas, Keras
  • Databases: MariaDB, MongoDB, PostgreSQL, MySQL,

My GitHub Stats

Top Langs

Your GitHub Stats

Thank you for visiting my GitHub profile. Feel free to explore my projects, get in touch, or collaborate on exciting projects. ๐Ÿš€

text2sql-query-bot's People

Contributors

ishaanshettigar avatar smarton2k2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

text2sql-query-bot's Issues

Come up with a cost estimate based on number of tokens for using the openAI API

OpenAI API information:

  • GPT-4: 0.03$/1k tokens for input into the prompt and 0.06$/1k tokens for the GPT-4's output.
  • GPT-3.5 Turbo: 0.0015$/1k tokens for input sent to the LLM and 0.02$/1k tokens for the LLM's output.
  • OpenAI embeddings: 0.0001$/1k tokens

We basically need to estimate how many tokens we feed into the model. We need to see how many tokens the schema linking is gonna take. How many tokens the query classification (easy, medium, hard) is going to take and how many tokens the SQL query classification and the self-correction phase is going to take.

Take 100 examples from the Spider dataset and come up with the estimate.
As a continuation you can even take 100 examples each from both, the BIRD dataset and the WikiSQL dataset.

Check out this article by OpenAI: How to count tokens with tiktoken

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.