Leveraging the power of OpenAI's Language Model Agents to create an intelligent SQL query assistant.
Welcome to the AI SQL Brain App repository! This project leverages the power of OpenAI's Language Model Agents to create an intelligent SQL query assistant. With this app, you can interact with a natural language interface to generate SQL queries, making it easier for both beginners and experienced SQL users to work with databases.
- Natural Language Interface: Communicate with the app using everyday language to construct SQL queries.
- OpenAI Language Model Integration: Utilizes OpenAI's advanced language model to understand and generate SQL code.
- Interactive Query Builder: Step-by-step guidance for building complex SQL queries.
- Database Connection: Connect to your database to execute SQL queries directly.
To get started with the AI SQL Brain App, follow these steps:
-
Clone the Repository: Clone this repository to your local machine using the following command:
git clone https://github.com/AdadAlShabab/AI-SQL-Brain-App-Using-OpenAI-LLM-Agents.git
-
Set Up Dependencies: Make sure you have the necessary dependencies installed. This may include Python, Flask, and other libraries. You can typically install them using
pip
:pip install -r requirements.txt
-
Configuration: Configure your database connection settings in the
config.py
file. -
Start the Application: Run the Flask app to start the AI SQL Brain App:
streamlit run main.py
-
Access the App: Open your web browser and navigate to
http://localhost:5000
to use the AI SQL Brain App.
Once you access the application, you can interact with the AI SQL Brain App in the following ways:
- Enter your query in natural language.
- Follow the app's prompts to clarify your query step by step.
- Review and modify the generated SQL query.
- Execute the query on your connected database.
The app will provide real-time feedback and suggestions to help you construct accurate SQL queries.
We welcome contributions to improve and extend the functionality of the AI SQL Brain App. If you'd like to contribute, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and test thoroughly.
- Submit a pull request with a clear description of your changes.
If you have any questions, suggestions, or encounter any issues, please feel free to contact us at sababadad74@gmail.com.
Happy querying with the AI SQL Brain App!