Skip to content

sudarshan-koirala/llama2-chat-with-documents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Llama2-chat-with-documents

Simple Chainlit app to have interaction with your documents.

Chat with your documents 🚀

System Requirements

You must have Python 3.9 or later installed. Earlier versions of python may not compile.


Steps to Replicate

  1. Fork this repository and create a codespace in GitHub as I showed you in the youtube video OR Clone it locally.

    git clone https://github.com/sudarshan-koirala/llama2-chat-with-documents.git
    cd llama2-chat-with-documents
    
  2. Rename example.env to .env with cp example.env .envand input the HuggingfaceHub API token as follows. Get HuggingfaceHub API key from this URL. You need to create an account in Huggingface webiste if you haven't already.

    HUGGINGFACEHUB_API_TOKEN=your_huggingface_api_token
    
  3. Create a virtualenv with conda and activate it. First make sure that you have conda installed. Then run the following command.

    conda create -n .venv python=3.11 -y && source activate .venv
    
  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:

    python3 ingest.py
    
  6. Run the following command in your terminal to run the app UI:

    chainlit run main.py -w
    

About

Simple Chainlit app to have interaction with your documents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages