Skip to content

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

License

Notifications You must be signed in to change notification settings

d-t-n/llama2-chatbot-deep-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    

Releases

No releases published

Packages

No packages published

Languages