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.
-
Clone the repository:
git clone [email protected]:ctoanadu/Django_chatbot.git
-
Navigate to the project directory:
cd Django_chatbot
-
Install dependencies:
pip install -r requirements.txt
-
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
- Create a
-
Set up OpenAI API key in the .env file
OPENAI_API_KEY=*****************************
-
Start the Django development server:
python manage.py runserver
-
User Interface:
- Access the user interface by navigating to http://127.0.0.1:8000/ in your web browser.