Skip to content

Summaries

Every item the gate lets through gets a short AI summary on its card, and a few key points in the reader (SI-536). Code: pipeline/stages/summarize.ts and services/summaries.ts. In the app: the cards, the reader, and Settings → Summaries (/settings/summaries).

How an item is summarized

summarize is the third pipeline stage, after extract and gate (pipeline.md). It’s an item stage: a summary is the same for everyone who reads it in the same language. For each item:

  1. Only items in a stream. Users whose gate filtered the item out get no summary. An item the gate hasn’t judged (the gate is off for the user) is in their stream, so it gets one. When no user is left, the step is skipped: “Filtered out by the gate”.
  2. A video needs its transcript. A video’s description is mostly links and sponsor text (SI-514), so a video without a transcript is skipped.
  3. Enough text. Less than 400 characters says no more than the title and excerpt: skipped, with no call. The card keeps the feed’s excerpt.
  4. One call per language. The item’s users are grouped by their summary language. Each group gets one call to GPT-6 Luna (DeepSeek V4.1 Flash when it fails, through OpenRouter’s models), with reasoning off, and pays for it in equal shares (costs.md). The model reads the source, the title and the first 10,000 characters of the extracted text.

The prompt is the SI-514 benchmark’s, extended: 1–3 sentences, at most 60 words, concrete (“who did what, and why it matters”), no preamble or markdown; up to five key points that add to the summary; and the item’s own language as an ISO 639-1 code. The answer is strict JSON. A summary is trimmed to 600 characters, a key point to 300, bullets are stripped, and a language that isn’t two letters is dropped. An answer without a summary fails the step.

The language is asked for twice: in the system prompt, and again after the text, because a long text in another language can outweigh the system prompt. The answer’s script is then checked against the language asked for: mostly Latin letters for English, German and the other Latin languages, Kana for Japanese, Han without Kana for Chinese, Hangul for Korean (a few names in another script are fine). A summary in the wrong script goes to the other model once, as a second once() memo. If that one misses too, nothing is stored for that language and the note says so; when no language got a summary, the step fails. The check can’t tell languages with the same script apart, such as English and German.

The call is a once() memo per item and language, so a crash doesn’t pay twice. Run again in Executions summarizes the item anew and overwrites the summary in that language.

Language

Settings → Summaries, or GET / PUT /api/v1/summaries (stored in user_settings.preferences.summaries.language): English (the default, as decided in SI-514), German, French, Spanish, Italian, Portuguese, Dutch, Swedish, Polish, Japanese, Chinese or Korean, or Same as the item (original). Titles and the item itself stay in their own language. The reader says which language a summary was translated from: “Summary · from German”.

A new language applies to items summarized from then on. Until an item is summarized again, the stream shows the summary it has in another language rather than none.

What is stored

item_summaries (migration 0013_item_summaries), one row per item and language, deleted with the item:

Column
item_id, language The key. language is what was asked for: a code, or original
summary 1–3 sentences, for the card
key_points JSON list, for the reader. Empty for short items
original_language The item’s language as the model saw it. Null when it gave none
model The model that answered, which may be the fallback
created_at When

The stream reads the summary with two primary-key lookups per row (the user’s language, else any), so it still pages from its index without sorting.

Where it shows

  • Cards: the summary in place of the feed’s excerpt, up to four lines. No summary: the excerpt.
  • Reader: a quiet “Summary” panel above the article, with the key points.
  • API: stream items carry summary; GET /api/v1/items/:id also has keyPoints, summaryLanguage and originalLanguage. The SDK has summarySettings() and setSummarySettings().

Costs

The stage is paid and skipped while a user is over their monthly budget (costs.md); their items keep the excerpt. When users of one item read different languages and only some are over budget, the others still get theirs.

The SI-514 benchmark put a two-sentence summary from 6,000 characters of feed text at $0.09 per 1,000 items with GPT-6 Luna, and about three times that from full text and transcripts. This stage reads up to 10,000 characters and writes key points too, so expect more per item. The real average is in the ledger: Settings → Costs shows Summarize’s cost per item over the last 30 days, and estimateCost() uses it. Measure it on the first few days of real items before relying on a number.

Not yet

  • Summaries in search. The full-text index has the title and the text, not the summary.
  • Summarize on demand. If the cost grows, summarizing only items that are opened or rank high is the lever (SI-514).