Skip to content

Latest commit

 

History

History
115 lines (72 loc) · 2.97 KB

Readme.md

File metadata and controls

115 lines (72 loc) · 2.97 KB

🦙 YouTube Llama

llama_image

A question-answering chatbot for any YouTube video using Local Llama2 & Retrival Augmented Generation

YouTube-llama.mp4

Table of Contents

Features

  • Learns information from YouTube videos.
  • Provides a natural language interface for asking questions about video content.
  • Utilizes Local Llama2 for efficient question-answering capabilities.

Installation

Follow these steps to set up the project:

  1. Clone the repository:

    git clone https://github.com/SRDdev/YouTube-Llama.git
    cd YouTube-Llama
  2. Install dependencies:

    pip install -r requirements.txt
  3. Installing Llama-cpp-Python

The installation process for llama-cpp-python is a bit complex. But I have combined all the required information below.

a. Requirements - git - python - cmake - Visual Studio Community (make sure you install this with the following settings) a. Desktop development with C++ b. Python development c. Linux embedded development with C++

  1. Install Llama-cpp-Python:

    Follow the installation process for Llama-cpp-Python:

    # Clone git repository recursively to get llama.cpp submodule as well
    git clone --recursive -j8 https://github.com/abetlen/llama-cpp-python.git

    Open up the command prompt (or Anaconda prompt if you have it installed), set up environment variables to install. Follow this if you do not have a GPU; you must set both of the following variables.

    You can ignore the second environment variable if you have an NVIDIA GPU.

    set FORCE_CMAKE=1
    set CMAKE_ARGS=-DLLAMA_CUBLAS=OFF
    pip install llama-cpp-python -q

Usage

How to use 🦙 YouTube Llama:

  1. Run the application:

    streamlit run app.py
  2. Access the chatbot through a web interface or API endpoint.

  3. Input questions related to a specific YouTube video

  4. Receive answers based on the content of the video as well as general-purpose information.

Contributing

We welcome contributions! Follow these steps to contribute to the project:

  1. Fork the project.

  2. Create a new branch (git checkout -b feature/awesome-feature).

  3. Commit your changes (git commit -am 'Add awesome feature').

  4. Push to the branch (git push origin feature/awesome-feature).

  5. Open a pull request.

License

This project is licensed under the Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) license.) - see the LICENSE.md file for details.