shorokatwa14 / Chatbot--openai

This Flask application implements a chatbot powered by OpenAI's GPT-3.5 Turbo model. The chatbot, named Dr. AI, assists users in Arabic with medical inquiries. It uses SQLite to store chat history and provides responses tailored to medical questions while not respond to non-medical queries appropriately.

Repository from Github https://github.comshorokatwa14/Chatbot--openaiRepository from Github https://github.comshorokatwa14/Chatbot--openai

Dr. AI - Arabic Medical Chatbot with GPT-3.5 Turbo

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.

Features

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

Setup

Prerequisites

  • Python 3.7+
  • pip (Python package installer)

Installation

  1. Clone the repository:
    git clone https://github.com/shorokatwa14/Chatbot--openai.git
    cd your-repository
  2. Create a new virtual environment (replace venv with your preferred name):
python -m venv venv
  1. Activate the virtual environment

    On Windows

         venv\Scripts\activate

    On macOS and Linux

        source venv/bin/activate
  1. Install Dependencies
     pip install -r requirements.txt
    
  2. run app (open terminal)
       python app.py

About

This Flask application implements a chatbot powered by OpenAI's GPT-3.5 Turbo model. The chatbot, named Dr. AI, assists users in Arabic with medical inquiries. It uses SQLite to store chat history and provides responses tailored to medical questions while not respond to non-medical queries appropriately.


Languages

Language:Python 100.0%