Smart search
ArchiveTube search feature can be enhanced by embedding video’s title and description. This is done using qwen/qwen3-embedding-8b through OpenRouter. When using smart search, each search query gets embedded server-side; this could be expensive if you have a public instance.
Warning
If you already have archived videos and smart-search was disabled, you need to follow the Migration guide
It supports any OpenRouter-like API, including HackClub AI. You simply need to add this in your config and replace the apikey and restart your container.
If you want to use OpenRouter instead, just change the backend to https://openrouter.ai/api/v1/embeddings
[smart_search]
enabled = true
backend = "https://ai.hackclub.com/proxy/v1/embeddings"
model = "qwen/qwen3-embedding-8b"
apikey = "sk-hc-v1-"
Migration
If you already have archived videos that were archived without smart-search enabled, you’ll need to embed them.
- Clone ArchiveTube on your PC
- Open the
embedding-migrationfolder - Stop your container
- Backup the database
- Copy the database file to
./embedding-migration/database.db - Create an
apikeyfile with your HackClub AI key inside - Install requirements with
pip install -r requirements.txt - Run
python main.py - Copy
database.dbback to the database
This will embed ALL titles and descriptions, this can be expensive if you have a lot of videos archived.