No description
  • Python 83.6%
  • Nix 10.3%
  • Just 4.4%
  • Mako 1.7%
Find a file
Yorick van Pelt 56236ff209
Cap summarizer input at 200k characters
A few scrapes are enormous (a 30MB table page, 687k chars of zalgo text
= 1.4M tokens) and exceed Haiku's 1M-token context, so their jobs fail
on every retry; and prompts over 100k tokens are billed at a higher
rate. The beginning of a page is plenty for a two-sentence summary.

200k chars is ~50k tokens of normal text (p99 scrape is ~96k chars),
so this only affects ~125 of the last year's 37.5k scrapes. Front
matter is kept; truncations are logged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 09:13:28 +01:00
hackerdeck Cap summarizer input at 200k characters 2026-11-02 09:13:28 +01:00
.gitignore Don't send scrape content twice to the summarizer 2026-11-01 19:09:28 +01:00
.pre-commit-config.yaml Update prek & ruff 2025-12-23 13:22:50 +01:00
.python-version python 3.13, fire -> typer 2025-12-23 16:44:27 +01:00
flake.lock Add RuntimeDirectory for UDS support in NixOS module 2026-03-21 17:46:37 +01:00
flake.nix Switch summarizer to Claude Haiku 5.5 with a tuned prompt 2026-11-01 19:11:13 +01:00
justfile Run alembic check against a throwaway Postgres in just check 2026-11-02 08:52:58 +01:00
pyproject.toml Switch summarizer to Claude Haiku 5.5 with a tuned prompt 2026-11-01 19:11:13 +01:00
README.md Initial commit 2025-10-12 11:03:39 +02:00
uv.lock Switch summarizer to Claude Haiku 5.5 with a tuned prompt 2026-11-01 19:11:13 +01:00