Smart search
ArchiveTube’s search feature can be enhanced by embedding a 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. Add this to your config, replace the apikey, and restart your container.
If you want to use OpenRouter instead, 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.
- Back up 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 archived videos.