SQL Agent is a tool designed to interact with SQLite databases using natural language queries. It leverages LangChain and LangGraph to provide a seamless interface for executing SQL commands, managing workflows, and handling errors effectively.
- Execute SQL queries against a SQLite database.
- Automatically check and correct SQL queries for common mistakes.
- Retrieve database schema and list tables.
- Handle errors gracefully with fallback mechanisms.
- Structured workflow management using LangGraph.
-
Clone the repository:
git clone https://github.com/yourusername/Sql_Agent.git cd Sql_Agent
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Run the application:
python main.py
All configuration settings are located in the config/settings.py
file. You can modify environment variables and other settings as needed.
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.