Skip to content

This repository contains a Django project for building a chatbot backend integrated with a Retrieval-Augmented Generation (RAG) model and GPT 3.5. The chatbot utilizes data from three provided sources about Brazil and the Word to generate responses. It includes an API endpoint for connecting with any frontend application.

License

Notifications You must be signed in to change notification settings

ctoanadu/Django_chatbot

Repository files navigation

Django_chatbot

This repository contains a Django project for building a chatbot backend integrated with a Retrieval-Augmented Generation (RAG) model and GPT 3.5. The chatbot utilizes data from three provided sources about Brazil and the Word to generate responses. It includes an API endpoint for connecting with a frontend application.

How to Run the Chatbot Locally

  1. Clone the repository:

    git clone [email protected]:ctoanadu/Django_chatbot.git
  2. Navigate to the project directory:

    cd Django_chatbot
  3. Install dependencies:

    pip install -r requirements.txt
  4. Set up environment variables to hold your secret key to access Open AI GPT API:

    • Create a .env file in the root directory.
    touch .env
  5. Set up OpenAI API key in the .env file

    OPENAI_API_KEY=*****************************
  6. Start the Django development server:

    python manage.py runserver
  7. User Interface:

Screenshot of usage

Chatbot

About

This repository contains a Django project for building a chatbot backend integrated with a Retrieval-Augmented Generation (RAG) model and GPT 3.5. The chatbot utilizes data from three provided sources about Brazil and the Word to generate responses. It includes an API endpoint for connecting with any frontend application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published