AI Search

AI Search Setup

Last updated 16 May 2026

Enable CLIP-powered semantic search to find content by natural language description across your entire library.

What Is AI Search?

StreamStash uses OpenCLIP (ViT-B/32), a vision-language AI model, to understand what's in your downloaded images and videos. Instead of searching by filename or username, you can search by what you see:

The model extracts visual embeddings from keyframes and matches them against your text query using cosine similarity.

Requirements

AI search requires the Power tier. The AI components (OpenCLIP, PyTorch, NumPy) ship inside the Power installer, so there is no manual setup.

Note: The CLIP model weights (about 600 MB) download once, the first time the indexer runs. The model runs on your CPU, so no graphics card is needed.

How It Works

Indexing

Once the model is downloaded, StreamStash automatically begins indexing your library in the background:

Searching

When you search, your text query is converted into a CLIP embedding and compared against all stored frame embeddings using a cosine dot-product. The best-matching frame per media item is returned, sorted by confidence score.

Getting Started

AI search is included in the Power tier. No manual installation is needed: the components ship with the Power installer and the model downloads itself on first use.

  1. Open StreamStash. The model downloads automatically the first time it is needed. The auto-indexer will start processing your existing library in the background.
  2. Navigate to Search in the sidebar. You'll see index statistics and can start searching immediately. Results will improve as more content is indexed.

Triggering a Full Reindex

If you want to sweep all existing content for anything not yet indexed, click the Rebuild Index button on the Search page, or call the API. Items already in the index are kept and skipped:

POST /api/search/reindex

Search Features

Index Storage

The search index is stored in a separate SQLite database at:

%APPDATA%\StreamStash\clip_index.db

This does not affect the main app database. You can safely delete this file to reset the index; it will be rebuilt automatically in the background.

Supported Platforms

AI search indexes downloaded media from these platforms:

Troubleshooting

Search page shows "Index not available"

The one-time model download may have failed. Check your internet connection, restart StreamStash so the indexer tries again, or check the logs for the exact error.

Indexing is slow

Indexing speed depends on your CPU. The model processes in batches and unloads between batches to avoid memory issues.

Results don't seem accurate

CLIP works best with descriptive phrases rather than single words. Try "person standing on a beach" instead of just "beach". The model understands visual concepts, not metadata.

API Reference

EndpointMethodDescription
/api/clip-search?q=<query>GETSearch with optional limit and platform params
/api/search/statsGETIndex statistics (total embeddings, items by platform)
/api/search/reindexPOSTTrigger full background reindex
/api/search/frame/<id>GETServe a matched keyframe image