Skip to content

kcarta/ai-hackathon-sql-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ai-hackathon-sql-gen (data agent)

Description

This project uses GPT chat completions to help users find data in SQL Server. It uses the OpenAI API to generate SQL queries based on user input.

This was made during a hackathon and does not account in any way for security, ethics, etc. - it is only meant as a technical proof-of-concept!

Installation

Prerequisites:

  1. Clone this repository
  2. Create an appsettings.json file with the following schema and enter your own values (OAI values - see REST API docs):
{
    "ConnectionStrings": {
        "default": "SQL_CONNECTION_STRING"
    },
    "oaiDeploymentName": "DEPLOYMENT_ID",
    "oaiKey": "API_KEY",
    "oaiEndpoint": "ENDPOINT_URL"
}
  1. Install the required packages: dotnet restore
  2. Run with dotnet run

About

Technical PoC using GPT chat completions to help users find data in a SQL Server database

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages