Giter Club home page Giter Club logo

snowchat's Introduction

snowChat ๐Ÿ’ฌโ„๏ธ

Python Streamlit OpenAI Snowflake Supabase

Streamlit App

snowChat is an intuitive and user-friendly application that allows users to interact with their Snowflake data using natural language queries. Type in your questions or requests, and SnowChat will generate the appropriate SQL query and return the data you need. No more complex SQL queries or digging through tables - SnowChat makes it easy to access your data! By bringing data one step closer, SnowChat empowers users to make data-driven decisions faster and more efficiently, reducing the barriers between users and the insights they seek.

pika-1682575152623-1x

๐ŸŒŸ Features

  • Interactive and user-friendly interface
  • Integration with Snowflake Data Warehouse
  • Utilizes OpenAI's GPT-3.5-turbo-16k and text-embedding-ada-002
  • Uses Supabase PG-vector Vector Database for storing and searching through vectors

๐Ÿ› ๏ธ Installation

  1. Clone this repository: git clone https://github.com/yourusername/snowchat.git

  2. Install the required packages: cd snowchat pip install -r requirements.txt

  3. Set up your OPENAI_API_KEY, ACCOUNT, USER_NAME, PASSWORD, ROLE, DATABASE, SCHEMA, WAREHOUSE, SUPABASE_URL and SUPABASE_SERVICE_KEY in project directory secrets.toml.

  4. Make you're schemas and store them in docs folder that matches you're database.

  5. Create supabase extention, table and function from the supabase/scripts.sql.

  6. Run python ingest.py to get convert to embeddings and store as an index file.

  7. Run the Streamlit app to start chatting: streamlit run main.py

๐Ÿ“š Usage

  1. Launch the app by visiting the URL provided by Streamlit.
  2. Type your query in natural language or SQL format in the input box.
  3. Press "Submit" to generate the response.
  4. The chatbot will generate a response based on your query and display the result, including any relevant data or SQL code.

๐Ÿš€ Additional Enhancements

  1. Automation: Create a generalized script that retrieves schema information from Snowflake automatically.
  2. Platform Integration: Connect snowChat with popular communication platforms like Slack or Discord for seamless interaction.
  3. Voice Integration: Implement voice recognition and text-to-speech functionality to make the chatbot more interactive and user-friendly.
  4. Advanced Analytics: Integrate with popular data visualization libraries like Plotly or Matplotlib to generate interactive visualizations based on the user's queries (AutoGPT).

๐Ÿค Contributing

Feel free to contribute to this project by submitting a pull request or opening an issue. Your feedback and suggestions are greatly appreciated!

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

snowchat's People

Contributors

kaarthik108 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.