Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.18 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.18 KB

Llama2 Chatbot Deep Learning

Deep Learning expert chatbot built using Llama2, langchain and chainlit and Deep Learning books.

Data

System Requirements

Python 3.9 + requirements.txt


Installation

  1. Fork this repository and create a codespace in GitHub or clone it locally.

  2. Use your HuggingfaceHub API key (from this URL) in the .env file

    HUGGINGFACEHUB_API_TOKEN=your_huggingface_api_token
    
  3. Create a virtualenv and activate it

    conda create -n llama2chainlit python=3.9
    
    conda activate llama2chainlit
    
  4. Run the following command in the terminal to install necessary python packages:

    pip install -r requirements.txt
    
  5. Run the following command in your terminal to create the embeddings and store it locally:

    python ingest.py
    
  6. Run the following command in your terminal to run the app UI (to choose ip and port use --host IP and --port XXXX):

    chainlit run main.py -w --host 127.0.0.1 --port 9001