wangmh / SqlGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT with SQL Server by Azure OpenAI ๐Ÿ’ก

Database Assistant with Azure OpenAI

SqlGPT with Azure OpenAI is a sample Question and Answering bot using Azure OpenAI. It's designed to demonstrate how to use your own data in SQL Server for QnA.

This demo shows how GPT demo can perform logic by demonstrating

  • plan for action
  • update its plan with new collected information until goal is achieved

SqlServer_ThoughtProcess.jpg

Project structure

  • Application - flask app (main application) with a simple HTML as frontend

QuickStart

Note: Make sure you have docker installed

  1. Open dowload this repository with git clone https://github.com/louis-li/SqlGPT.git
  2. in application folder, mv .env.sample .env
  3. Edit .env file and add your Azure OpenAI key and end point
  4. Edit SQL Server/database/username/password info in .env file
  5. Run docker-compose build && docker-compose up
  6. Navigate to http://localhost:5010/

To stop just run Ctrl + C

Built with ๐Ÿฆœ๏ธ๐Ÿ”— LangChain

About

License:MIT License


Languages

Language:Python 73.1%Language:HTML 12.9%Language:JavaScript 10.7%Language:Dockerfile 2.1%Language:CSS 1.1%