Skip to content

dilancroos/django_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn


Django Chat with LLAMA

Université Paris Cité - M2 - Digital Science (AIRE)

Dilan Croos
Explore the docs »

· Report Bug · Request Feature

Table of Contents
  1. Getting Started
  2. Usage
  3. Contact
  4. Acknowledgments

About the Project

(back to top)

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Python 3.11.6^

  • install pip

      $ python3 -m pip install pip

Installation

  1. Clone the repo

     $ git clone git@github.com:dilancroos/django_chat.git
  2. Change to the working directory

     $ cd django_chat
  • Check Usage to create a virtual environment

(back to top)

Usage

  • Create a virtual environment .venv

      $ python3 -m venv .venv
  • Enter the virtual environment .venv

      $ source .venv/bin/activate
  • Install PIP packages

      $ pip install -r requirements.txt
  • Rename envtemp to .env


  • Add your Llama Api key to .env file

  • Migrate DB

    $ python manage.py migrate
    $ python manage.py makemigrations

    again

    $ python manage.py migrate
  • Create Super User

    $ python manage.py createsuperuser
    • enter username, email, password
  • Run Server

      $ python manage.py runserver
  • Chat

    https://127.0.0.1:8000


- Login to Admin Portal,
  • logging in to https://127.0.0.1:8000/admin using the credentials you created.

  • Create chat group,

    • Click on Chat groups > ADD CHAT GROUPS + > create a chat group called "ai-chat".
  • Create user "botty" by,

    • Click on Users > ADD USER + > create a user named "botty"

    • Add an email address

    • Save

    • Profiles > botty > Choose File --> select file on ./media/avatars/botty.png

(back to top)

Contact

Dilan Croos - antondilan.crooswarnakulasuriya@cri-paris.org.com

Project Link: https://github.com/dilancroos/django_chat

(back to top)

Acknowledgments

(back to top)