Skip to content

MichaelDecent/Sql_Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages