Skip to content

AI features

Optional AI turns Horde from a downloader into a smarter archive: semantic search, related videos, summaries, chapters, chat, tags, recommendation shelves, and duplicate help.

Prerequisites

AI features need providers ready:

  • Embeddings — the provider's embedding model, or a second server's (for library embeddings, related, catalog embeds, categories)
  • Chat / LLM — the Background model (summaries, chapters, enrich tags, category invention, duplicate confirmation) and the Assistant model (Ask)

Configure under Settings → AI and follow AI setup. Until embed/chat models are present and healthy, Library stays on a single home tab (no Recommended), hybrid search degrades to keyword-only, and LLM actions stay unavailable.

Workload profiles

Use workload profiles so embedding and chat don’t thrash a small GPU. See Workload profiles and Local vs cloud AI.

Feature overview

Feature What it does Needs
Hybrid search Keyword + embedding ranking; no UI semantic toggle Embeddings
Use subtitles in embeddings Include VTT/caption text in corpora (use_subtitles) Embed rebuild after change
Related videos Neighbors on the watch page Embeddings
Summaries Generate a synopsis for a video Chat LLM
Chapters Generate Watch markers from captions when the description has none Chat LLM
Ask, about a video Answers questions about one video from its details, captions and comments; open Ask on its watch page Chat LLM (or the Assistant model); needs AI video chat
Ask, from Horde Answers how-to questions from the docs and source, links to and changes settings, answers about your own library, queues downloads, builds playlists and writes custom CSS Chat LLM (or the Assistant model)
Ask, from channels Answers questions about what indexed YouTube channels said, citing each point to the moment, when you name a channel (or ask from its page) Chat LLM (or the Assistant model); embeddings help
Enrich tags Suggest / apply topical tags Chat LLM
Recommended tab Better ranking (by content) and your own category chips Embed ready
Duplicate confirmation Score heuristic duplicate groups on Import Chat (+ optional embed similarity)

Summaries

When AI video summaries is on, a summary is queued after download once captions are on disk. Length is a setting (short / medium / long). Watch still has Regenerate, and older videos without a summary can Generate from the Summary section. Summaries use title, description, and caption text.

Chapters

When AI video chapters is on, choose On download or Watch page. On download queues a chapter job after captions exist if the description (and yt-dlp chapter list) do not already provide markers. Watch page only generates when you click the button on a video. Videos under 3 minutes and lyric-heavy captions are skipped automatically; Watch Generate still runs for those. After AI markers exist, Watch shows a short “AI generated chapters” note and Regenerate on the Description row. Markers are stored beside the video; the description is not rewritten. Description timestamps always win over yt-dlp and AI.

Chapters follow the video, not the clock. The model reads the timed captions, lists the major parts of the video as a table of contents, and then gives the moment each part begins; a chapter starts only where the video moves on to something else, so one may last a minute and the next twenty. The number is capped by length (about 6 for a 10-minute video, 11 for 40 minutes, 16 for 80, never more than 30) and is usually lower. A long video is read in sections so no captions are left out, and a chapter that comes out far longer than the rest is read once more on its own (when it fits in one call), in case several parts were filed under one title. That costs one model call for most videos and a few for a long one.

If the model finds a single part, the video gets no chapters ("No clear chapter breaks in this video"); Regenerate that ends this way removes the chapters the video had. If its reply cannot be used, generating fails with an error and what was stored stays: Horde does not fill in markers of its own. Chapters made before this changed stay as they are until you press Regenerate.

Chat about a video

Questions about a video go to Ask: open it on the watch page and it answers from that video. Answers are built from the video's metadata and captions when available, and from its saved comments (labelled as viewers'), so you can ask how people reacted. A saved summary stays readable in the section even when it cannot be generated again (summaries switched off, or no captions). Requires a working chat provider and AI video chat.

Ask

The top bar has an Ask button (a chat bubble) left of the search box, or beside the search icon on a phone. It opens a chat panel in the corner of the screen: ask how to set up AI, why a download failed, where files live or how a feature works under the hood. The panel is not in the way of the app: it stays open, with the same conversation, as you move between pages, and you can drag it by its header and resize it from its top-left corner (on a phone it fills the bottom of the screen, and following a link in an answer closes it). In the installed app on a phone, the Ask tab of the tab bar opens and closes it, and it sits just above the bar. On a wider screen, the expand button (⤢) in its header docks it as a full-height column on the right (drag its left edge to make it wider or narrower): the page makes room for it (a video plays in theater layout while it is docked, so the picture stays large), and it stays there as you move around the app until you float it again (the same button, now ⤡). The minimize button (⌄) folds it to a small bar at the bottom of the window without losing the conversation or a half-typed question; click the bar, or Ask in the top bar, to bring it back as it was. Escape or the close button hides it; New chat starts over, and History lists your earlier conversations (saved on the server for your account). Each question goes where it fits, and each answer says where it came from; Ask Horde instead and its kin under an answer re-ask it from elsewhere. This section is about answers from Horde; answers from channels are on the Ask page.

Without AI (no provider set up, or an account without the use_ai permission) the panel still works: it says so above the question box, and each question is answered with the closest pages of this documentation (linked, with the first lines of each) and up to three matching settings, found by the same search the AI uses. Nothing is sent anywhere. An administrator also gets a link to the AI provider settings.

Each question also tells Horde which page you are on (for example "Settings, Playback tab" or the video playing), so "what does this page do?" gets a useful answer.

Answers come from the documentation and the source code shipped with your version of Horde: the wiki pages, README.md, .env.example, docker-compose.yml, the changelog, and the backend and frontend code. For each question Horde picks the best-matching sections (a keyword search, no embeddings needed) and sends them with the features overview to the chat model, so it works with small local models too. Under each answer, Sources links the wiki pages and the files on GitHub (at your build's commit) it was given.

  • Needs the use_ai permission and a working chat provider; answers from Horde do not depend on the AI video chat toggle (answers about a video do). With OpenRouter, spend is recorded under chat in the cost ledger.
  • Members are told when something is an administrator's setting.
  • Where you put the panel is kept in the browser tab only; conversations are saved on the server for your account (see History). Each question sends the last few turns back, with roughly 6,000 tokens of excerpts, so a local model needs a context window of at least 8K tokens (Ollama: OLLAMA_CONTEXT_LENGTH=8192 or more) for good answers.
  • Answers can be wrong. The model only sees the excerpts it was given; check the linked pages before changing anything important.

When the panel opens it suggests five questions, a different mix each time; the first is always What can you do?, which lists everything below (answered by the app itself, without asking the model).

When an answer mentions a setting or a page it links it. Following a setting link opens the right Settings tab (or the Account page), scrolls to the setting and rings it in the accent color for a moment. The panel stays open (on a phone it closes, so you can see the page). You can make the same links yourself: /settings?tab=appearance&find=background jumps to the Background section; a find that is no section's name searches Settings for those words instead.

Changing settings for you

Ask for a change ("make the text bigger", "turn on SponsorBlock") and the answer comes with a card: Change Text size to Large and an Apply button, then Undo. Nothing changes until you press it. It also knows what each of those settings is set to now, so "is SponsorBlock on?" gets a straight answer (a preference you never changed is reported as its default). The assistant may change your own appearance, library and playback preferences, and (for the administrator) a few server switches such as YouTube search, Recommended looking on YouTube and the video chat; those cards say they change it for everyone. For anything riskier, such as AI providers and keys, models, budgets, the AI features that run on every download (summaries, chapters, tags), two-step sign-in, the storage limit, the download format or a reset, it only links to the setting. The full list, and which are which, is backend/app/services/ai/help_catalog.json.

Your own data

Turn on Use my data (Settings → Library) and the assistant can answer about your downloads ("why did my last download fail?"), watch history ("what did I watch this week?"), playlists and library ("which channels take the most space?", "find that cooking video", "what should I watch next?"). Only a question about your own things gets any ("my downloads", "did I watch…", "do I have any videos about…", "what's downloading?", "what should I watch next", "recommend something", "make a playlist of…"); how-to questions send none, even "how do I change my password?". When a question needed none, the assistant is told nothing was looked up, so it says so instead of guessing. Then only what it needs is sent, as a few short lines: the words of the question pick which (failed downloads, recent history, your playlists and what is in them, library totals, a library search or unwatched videos). If it does not find what you mean, say "my downloads" or "my library". Everything is read as you see it: your own history, playlists you can open, downloads you may see.

It has three choices: Off, AI on my network only and Any AI, including cloud; under them Settings says which AI you have and whether your data goes to it. A cloud provider such as OpenRouter, or an Ollama cloud model (one whose name ends in cloud, such as gpt-oss:120b-cloud, which your Ollama server passes on to ollama.com), only gets your data with Any AI, including cloud: with AI on my network only the server holds it back, even if the AI changes to a cloud one later. The choice is saved per account, and the assistant links the setting when a question needs your data and it is off. Questions about custom CSS also send your saved stylesheet when they mention CSS.

Downloads and playlists

Give the assistant a link and it offers a Download card with a quality picker; ask for a playlist of videos it found and it offers Make playlist (or Add to one of your playlists). Each needs your click, and goes through the same permission checks as the Download and Playlists pages.

Custom CSS

Describe a change to how Horde looks ("rounder video cards", "a frosted top bar") and the assistant writes the CSS with a Preview button. The preview is on the page for 20 seconds with a bar at the top: Keep adds it to your custom CSS (and turns custom CSS on; Undo takes it back), Revert or Escape removes it, and if you do nothing it reverts by itself, so CSS that hides the page (even the bar) cannot lock you out. Only one preview runs at a time. If a saved stylesheet ever does, open Horde in a browser tab with ?nocss on the address (for example http://horde:8080/?nocss): custom CSS stays off in that tab until you turn it back on.

Which model it uses

The assistant uses the background model unless the administrator sets an Assistant model under Settings → AI → Models, which lets it use a stronger model without making summaries and tags cost more. On OpenRouter the Budget background model is deepseek/deepseek-v4.1-flash, so Ask uses it too; an install still on the former Budget model (google/gemini-2.5-flash-lite) also gets it for Ask until you choose another. It knows roughly how capable its model is: on a small local model (3B or so) links, settings and how-to answers work, but it will say its CSS may be rough and suggest something better, such as google/gemini-2.5-flash on OpenRouter or a 14B local model.

Streamed videos

A video you stream without downloading (/watch?url=…) gets the same Summary section and Generate chapters (and Ask answers questions about it), from its title, description and English captions (fetched from the stream the first time you use AI on it; a stream without captions can still be asked about from its metadata). Only YouTube videos are supported.

Nothing summarizes a stream on its own, so its Summary section starts collapsed while it has no summary; opening it writes one. If YouTube is slow to hand over the captions (it rate-limits them), the section keeps waiting and tries again for up to a minute before it reports an error. The captions are fetched once for the player and the AI features alike, and a rate limit makes background caption work (library retries, Ask indexing) hold off for two minutes so your next try gets through.

Results are saved per video. Opening the stream again shows them without spending tokens, and downloading the video moves them onto the library copy (its own summary or chapters win if it already has some). Questions about it live in Ask, and an Ask conversation about the stream carries on with the library copy. If nobody opens the stream for HORDE_STREAM_AI_RETENTION_DAYS (default 30) days and it was not downloaded, its saved results are deleted. The Summary section shows the date they are kept until. See ADR 0010.

Enrich tags

Enrich tags proposes tags from title, channel, and description (subtitle excerpt is optional when captions exist). Existing tags are respected (avoid near-duplicates), and the model is shown the library's most used tags so it reuses their exact spelling instead of inventing synonyms. Tags then appear as library chips when counts exceed the display threshold (Library).

Summaries still require downloaded captions; tag enrichment does not.

The home page's Recommended tab works with AI off: it then ranks by what your history says (channels you watch, tags, follows, freshness). With embeddings it matches videos by their content to what you watched recently and watched through, which also finds videos from channels you have never opened. How it mixes and how to tune it: Library → Library and Recommended.

Categories on Recommended are your own: your recent watches grouped by subject (by embedding), each account its own. They show as chips above Recommended; see Library. The background model names them when looking on YouTube is on; otherwise they are named from the watched titles and tags. Without embeddings there are none.

AI categories (Settings → AI → Jobs → Refresh categories) are separate and site-wide: the background model invents them from a sample of the library. They now only tag the suggested channels on Recommended ("what is this channel about") and are listed in Settings → AI. Match strictness is tunable (category_min_score). How the scores work: AI pipeline.

Duplicate confirmation

On Import & review, possible duplicate groups can be scored with AI when AI duplicate confirmation is enabled. Scoring is on-demand from the Import API (not a background AI job). Groups show verdict, confidence, optional similarity score, and reason text; if AI is enabled but no chat provider is up, the UI shows AI unavailable (ai_error) instead of a silent blank. Use Keep this, Delete, or Not a duplicate to resolve groups.

Embeddings & catalog embeds

  • Library videos get embed_video jobs for semantic search and related
  • Channel catalog entries can get embed_catalog_video after catalog phases reach embed
  • Changing the embedding model prompts a rebuild so shelves and search stay coherent
  • Failed embeddings store embed_status=error + embed_error on the video; rebuild from Jobs

Single-flight & queues

AI work is queued and rate-limited (single-flight patterns, workload profiles). Watch Settings → AI → Jobs for:

  • Runnable / deferred / waiting / failed counts (not one opaque “N queued”)
  • Blocked state when jobs sit waiting on the AI provider
  • Failed jobs list with Retry / Retry all / Clear failed

See Single-flight AI and AI pipeline.