Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.33 KB

File metadata and controls

55 lines (35 loc) · 1.33 KB

SQL Agent

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.

Features

  • 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.

Directory Structure

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/Sql_Agent.git
    cd Sql_Agent
  2. Create a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install the dependencies:

    pip install -r requirements.txt

Usage

  1. Run the application:

    python main.py

Configuration

All configuration settings are located in the config/settings.py file. You can modify environment variables and other settings as needed.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.