AI recommendations for Plex: what works and what doesn't
Where a language model helps with Plex recommendations, where it invents films you don't own, and how to run it locally with no API key.
A language model ranks and explains a list of candidates well. It is bad at producing the list: it suggests films you don’t own, under alternate titles, and sometimes films that don’t exist.
The failure everyone hits first
The obvious design is to dump the watch history into a prompt, ask for ten recommendations and create a collection from the answer.
- The model doesn’t know what you own. It recommends from everything ever made, so on a 2,000-film library a row of ten becomes a row of three.
- Titles don’t match cleanly. Films have alternate release titles, regional titles, remakes with the same name and years that disagree between sources.
- It invents titles occasionally, which an unattended nightly job will publish.
- It doesn’t know what the person watched unless you put the history in the prompt, which costs tokens and gets truncated on heavy viewers.
The shape that works
Candidates come from your library, and the model ranks them.
- Take what the person watched and finished.
- Find similar titles through a metadata source (TMDB similarity, shared genres, keywords, cast, crew) or a service like Trakt.
- Filter to what is in your library and drop anything they have seen.
- Hand that shortlist to the model and ask it to pick the best ten and say why.
The model chooses from a list you control, so every pick exists. Its job is a sentence explaining why this film follows from that one.
Steps 1 to 3 need no AI. Shortlist also does step 4 in code, ranking the shortlist and writing the reason for each pick, so no model is needed.
Do you need an API key?
No. Without a model you still get personalised rows with a reason on every pick. A model adds web search for recent titles that TMDB misses, and AI rows you describe in your own words. Ranking and the reason for each pick are done in code.
Running a model locally
Ranking twenty candidates and writing ten short sentences is a small job. A modest local model on the same machine as your server is enough. The usual options are Ollama, llama.cpp, LM Studio, vLLM and LocalAI. They all answer requests the way OpenAI’s service does, so a tool built for OpenAI can usually be pointed at one by changing the web address.
The same setting covers hosted gateways that speak this API, such as ollama.com’s cloud and OpenRouter. Give the “Local / OpenAI-compatible” option the gateway’s address and its key. A server on your own network needs the address alone.
What it costs on a cloud provider
Cost depends on how many people you have, how many runs per night and how much goes in each prompt. Sending raw history instead of a summary, and rebuilding rows that haven’t changed, make it larger. AI and cost has figures and the settings that keep the bill down.
Shortlist does this for you
Shortlist builds each person's rows nightly from their own watch history and hides them from other accounts with share filters.
docker run -d --name shortlist -p 5959:5959 \
-e TZ=Etc/UTC -e PUID=1000 -e PGID=1000 \
-v /path/to/shortlist/config:/config \
--restart unless-stopped \
ghcr.io/stevezau/shortlist:latest
Related
- How to improve Plex recommendations: the non-AI settings first
- Plex how-to: where candidates come from
- Plex recommendation tools compared: which tools require a key
- AI and cost: provider setup and keeping the bill down in Shortlist