Dr. AI is a Flask application that implements a chatbot powered by OpenAI's GPT-3.5 Turbo model. This chatbot assists users in Arabic with medical inquiries, providing tailored responses using advanced natural language processing capabilities. It stores conversation history in an SQLite database and ensures privacy by handling non-medical queries appropriately.
- GPT-3.5 Turbo Model: Uses OpenAI's powerful model for generating contextually relevant responses.
- SQLite Database: Stores chat history securely for future reference and analysis.
- Medical Focus: Responds specifically to medical questions in Arabic.
- Privacy and Security: Prioritizes patient confidentiality by not responding to non-medical queries.
- Flask API: Implements a RESTful API for seamless integration with client-side applications.
- Cross-Origin Resource Sharing (CORS): Allows interaction with the API from different domains.
- Python 3.7+
- pip (Python package installer)
- Clone the repository:
git clone https://github.com/shorokatwa14/Chatbot--openai.git cd your-repository
- Create a new virtual environment (replace
venv
with your preferred name):
python -m venv venv
-
Activate the virtual environment
On Windows
venv\Scripts\activate
On macOS and Linux
source venv/bin/activate
- Install Dependencies
pip install -r requirements.txt
- run app (open terminal)
python app.py