Skip to content

8r4b/sql-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SQL Chatbot This project is a conversational AI chatbot that interacts with your database using natural language. Built with LangChain and Streamlit, it allows users to query their database by simply asking questions.

πŸš€ Getting Started Follow these steps to get your SQL Chatbot up and running.

πŸ“¦ Install Dependencies First, install the necessary Python packages:

pip install -r requirements.txt

βš™οΈ Configure Your Environment Create a file named .env in the root directory of your project and add the following environment variables. Remember to replace the placeholder values with your actual credentials.

OPENAI_API_KEY=your_openai_key
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_HOST=localhost
DB_PORT=3306
DB_NAME=your_db_name

πŸƒβ€β™€οΈ Run the Chatbot Once your dependencies are installed and your .env file is configured, you can launch the chatbot:

streamlit run main.py

🧠 Technologies Used LangChain: For orchestrating the conversational AI logic. Streamlit: For creating the interactive web interface. OpenAI GPT-3.5: The large language model powering the chatbot's understanding and generation. SQLAlchemy: For interacting with the database. python-dotenv: For managing environment variables. πŸ“‚ Folder Structure

sql_chatbot/
β”œβ”€β”€ main.py
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ .env
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md
└── screenshots/
└── demo.png

πŸ“¬ Contact Made with ❀️ by Mohamed Osama

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages