asktube
v0.2.6
AskTube - An AI-powered YouTube video summarizer and QA assistant powered by Retrieval Augmented Generation (RAG) ?
Run it entirely on your local machine with Ollama, or cloud-based models like Claude, OpenAI, Gemini, Mistral, and more
For the first time running, the program maybe a bit slow due they need to install local models.
Ensure you installed:
Python 3.10
homebrew
or your install package command (apt, dnf, etc)
conda
Poetry
Powershell
and run:(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
Terminal
and run:curl -sSL https://install.python-poetry.org | python3 -
Bun
ffmpeg
brew install ffmpeg
# Ubuntu
sudo apt install ffmpeg
# Fedora
sudo dnf install -y ffmpeg
Clone repostiory
git clone https://github.com/jonaskahn/asktube.git
Create file .env
in asktube/engine
directory:
Run program
poetry env use python
terminal/cmd/powershell
in asktube/engine
directory, then run:poetry install && poetry run python engine/server.py
terminal/cmd/powershell
in asktube/web
directory, then run:bun install && bun run dev
Open web: http://localhost:3000
Before You Start
- I built these services to docker images, but if you want to build local images, please run
build.local.bat
forWindows
orbuild.local.amd64.sh
orbuild.local.aarch64.sh
forMacOS
,Linux
- If you have a GPU (cuda or rocm), please refer ENV settings above, change params like above
Locally
terminal/cmd/powershell
in asktube
directorydocker compose -f compose/local.yaml pull && docker compose -f compose/local.yaml up -d
Ollama
model qwen2
and llama3.1
for QAdocker run ollama ollama run qwen2
docker run ollama ollama run llama3.1
Free (with rate limit)
terminal/cmd/powershell
in asktube
directorydocker compose -f compose/free.yaml pull && docker compose -f compose/free.yaml up -d
Ideal
VoyageAI
for embedding textsOpenAI
and Claude
for QA, register account and generate your own API keysterminal/cmd/powershell
in asktube
directorydocker compose -f compose/ideal.yaml pull && docker compose -f compose/ideal.yaml up -d
Result
The real implementation might differ from this art due to its complexity.
- Do not use this for production. This aimed for end-users on their local machines.
- Do not request any advanced features for management.