SQL Agent
- Python 3.9 or higher
- Clone this repository.
- Install the required Python packages using pip:
pip install -r requirements.txt
- Place corresponding OpenAI key, Gemini Key, and Ollama url in utils
- Place database environment in database/constant_db
uvicorn api.app:app --reload
Example api:
- Using FastApi & Langserve:
{
"input":{
"input":"input",
"tool_llm_name":"gpt-3.5-turbo",
"agent_llm_name":"gpt-3.5-turbo"
},
"config":{},
"kwargs":{}
}
- Using Flask:
{
"input_text": "input",
"tool_llm_name": "gpt-3.5-turbo",
"agent_llm_name": "gpt-3.5-turbo"
}