Skip to content

octadion/sql-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Agent

Introduction

SQL Agent

Prerequisites

  • Python 3.9 or higher

Installation

  1. Clone this repository.
  2. Install the required Python packages using pip:
pip install -r requirements.txt
  1. Place corresponding OpenAI key, Gemini Key, and Ollama url in utils
  2. Place database environment in database/constant_db

Usage

uvicorn api.app:app --reload

Example api:

  1. Using FastApi & Langserve:
{
    "input":{
        "input":"input",
        "tool_llm_name":"gpt-3.5-turbo",
        "agent_llm_name":"gpt-3.5-turbo"
    },
    "config":{},
    "kwargs":{}
}
  1. Using Flask:
{
    "input_text": "input",
    "tool_llm_name": "gpt-3.5-turbo",
    "agent_llm_name": "gpt-3.5-turbo"
}

About

Agent for SQL Queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages