Spaces:
Running
Running
Commit History
6 days ago
-
feat: the front door — front page, library links, weak-match notice, search-engine basics (doc 06, 2026-11-17)
siddhm11 +1: Claude Opus 5.5- / shows a front page to new visitors instead of redirecting to the onboarding form: search box and examples, "Personalise your feed", how the feed works, and the week's 7 most upvoted papers as cards with Save/Pass (policy welcome_top_v1, logged to feed_exposures). 8 of the first 18 outside readers never reached a feed. - Library > Other devices: one private link (/l/<token>, 128 random bits, never the user id) opens the same library in another browser. A browser with its own saves is asked first, then its saves and follows are added. Switching POSTs must be same-site. library_links replicates to Turso. - A search whose best cross-encoded match is below SEARCH_WEAK_MATCH = 0.15 says "None of these is a close match" and skips the AI overview. Measured: flags 10/30 everyday web searches, 1/100 known-answer research queries, 0/30 short real queries. - /robots.txt and /sitemap.xml; og:url and canonical from PUBLIC_URL (https); preview picture = the paper's first ras…b72a0a6
10 days ago
-
feat(search): boosts sized for the cross-encoder, title auditions, more results and filters, nightly check (audit F15, F16, F18, F24)
siddhm11 +1: Claude Opus 5.5- After the cross-encoder, title (except exact) and citation boosts x0.3: MRR@10 0.584 -> 0.612 on 847 known-answer queries (CI +0.018..+0.038), top-1 50.5% -> 55.3%. - "seminal"/"popular"/"most cited" queries weigh citations x5 and those words are no longer required keywords. - Title matches from fused ranks 11-50 audition for the cross-encoder window. - A search keeps its fused top 50: "More results" and year/area filters read it without running again. - scripts/search_check.py + nightly Action: 100 known-answer searches against the live Space, failing below floor hit@10 / MRR@10. Doc 06 changelog 2026-11-13. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>39f549a
11 days ago
-
chore: remove Zilliz and dead code; small UI fixes (audit F26, X1-X7, X3, S6, F14)
siddhm11 +1: Claude Opus 5.5- Zilliz sparse arm removed (zilliz_svc, health ping, ingest writer, pymilvus, ZILLIZ_* settings). Production never used it; search is Qdrant dense + FTS5, dense-only without an FTS index. - Dead code: RRF-over-interests helper (forbidden by CLAUDE.md §3.1; the benchmark now runs the real per-interest quota path), point-ID mapping and paper_qdrant_map, the HF discovery shadow pipeline, unused helpers, settings and imports, two stale Zilliz diagnostic scripts. - pytest moves to requirements-dev.txt; COOKIE_MAX_AGE used everywhere. - UI: corpus size counted from the sidecar instead of "1.8M" typed three times, stage timings for the owner only, trending failure copy, a 404 h1, 24 px arXiv-id tap target, honest startup log. - Docs: CLAUDE.md, README tier table, CURRENT-STATE, doc 06 changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>5d396c5
16 days ago
-
feat(feed): build interests from saves, questions and opens; Pass no longer hides a field
siddhm11 +1: Claude Opus 5.5Only saves shaped interests. The owner's feed: 7 saves, all on attention, gave 2 interests, both attention, while 38 opened papers spanned LLM reasoning, vision, robotics and economics. db.get_taste_history now feeds the clusterer saves (1.0), papers asked about (0.6) and papers opened (0.3) from the last 30 days, at most 60; importance is recency x weight. A paper since passed on or un-saved is left out, and opened or asked papers are not served back as candidates. Replayed on the owner's current history: 5 interests (attention 68%, vision 12%, ML for economics 8.5%, RL for LLMs 5.7%, robotics 5.6%). Category suppression is removed: three Passes in a category removed it from a multi-interest reader's feed for 14 days, their main field included. Pass now updates the negative profile only. Feature 25 stays at 0, as in training. get_suppressed_categories and its tests are deleted; the two scripts that called it are updated. Owner's decision, logged in doc 06 (2026-11-08); CLAUDE.md §3.…75e2834 -
feat(sidecar): full abstracts and an author-searchable keyword index
siddhm11 +1: Claude Opus 5.51,440,395 sidecar abstracts (73%, everything before June 2025) were cut at 500 characters, and the search reranker and plain-language summaries read the stump: MRR@10 0.563 on it against 0.618 on full text (doc 06, 2026-10-15). The keyword index also covered only title and abstract, so an author's name found nothing. scripts/sidecar_full_abstracts.py fills papers.abstract_full from the local Kaggle CSV, only where the CSV text starts like the stump (120 characters, whitespace normalised): 1,439,872 of 1,440,395 match. It rebuilds papers_fts over title, abstract_preview and authors. abstract_preview stays the 500-character opening, so the keyword index keeps its size and speed. local_meta serves abstract_full in place of the stump when the column exists; older sidecars read as before. append_to_sidecar.py now indexes whichever columns the FTS table has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>4d335f2 -
fix(ingest): ride out arXiv OAI outages and catch up gaps automatically
siddhm11 +1: Claude Opus 5.5On 5 and 6 Nov arXiv's OAI endpoint timed out for hours and both daily runs failed, leaving 2,320 papers to a manual catch-up. The harvest now moves to the next set after a failed try, keeps its place in each list, backs off 30 s to 5 min, and stops only at its time limit (240 min, job 330). Turso ingest_state records oai_complete_through; a run starts from the day before it when that is further back than the lookback, so a gap longer than the lookback no longer leaves a permanent hole. A gap still fails the run, but only after citations and verify have run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>08a3cca
20 days ago
-
Merge pull request #80 from siddhm11/feat/hn-data
siddhm11Unverified signaturefeat(daily): record every Hacker News link to an arXiv paper752a985 -
fix(daily): give the ingest 150 minutes, and time every progress line
siddhm11 +1: Claude Opus 5.5The daily refresh failed on 31 Oct and 3 Nov at its 60-minute ingest limit: Mondays bring about twice a weekday's papers (3 Nov listed ~2,000 new by math, with physics and stat still to come). Successful runs already took up to 77 minutes. Encoding is the smaller part: 1,123 papers took 15 minutes of a 47-minute refresh on 2 Nov; the rest is the OAI listing under arXiv's rate limits, the writes and the citation refresh. The limit is now 150 minutes, under the job's 300; the repository is public, so the minutes are free. A timed-out run already keeps every page it finished. Why it failed could not be read from the log: daily_refresh.py captures the ingest's output and prints it at the end, so every line carried the same time. Each progress line now starts with its own UTC time, and each stored page logs its new papers and its encode and write seconds. Suite without the browser tests: 1,622 passed, the 3 live-Qdrant failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>f0a4461 -
Merge pull request #82 from siddhm11/perf/keep-models-warm
siddhm11Unverified signaturerelease: bring main up to what the Space runs (#57–#79, keep-warm, search stage times)68a009a -
feat(daily): record every Hacker News link to an arXiv paper
siddhm11 +1: Claude Opus 5.5A new stage of the daily job, scripts/hn_harvest.py, reads the HN Search API by Algolia for comments that name arXiv, alphaXiv, ar5iv or Hugging Face Papers and stories submitted with such a URL, keeps the ids each one actually links, and writes them to Turso: hn_mentions (one row per item and paper), hn_comments (the comment text, for labelling later how a paper is used), hn_threads (title, points, comments) and hn_state (the watermark). Algolia returns at most 1,000 hits a search, so ranges are halved until each fits; long ranges are counted before they are downloaded. Each run starts three days before the watermark, so stories still gaining points are read again, and the watermark moves only when every window came back. Like the Hugging Face stage it never fails the run. Measured on 3 Nov 2026, from 2007: 49,639 links to 28,447 papers in 38,897 threads, 1,309 requests, 5 minutes, nothing lost. A daily run is about 20 requests. Backfill once with daily_refresh.py --hn-only --hn-s…e1332a9
29 days ago
-
feat(groq): rotate credentials before falling back to another model
siddhm11(cherry picked from commit a40fa57bed16db9744167f921373506f1efb3fb6)a84b508
30 days ago
-
fix(daily): count only the rows a run added, never every row of papers
siddhm11 +1: Claude Opus 5.5counts() ran SELECT MAX(rowid), COUNT(*) FROM papers before and after every run: two reads of all ~2M rows, against Turso's free plan of 500M reads a month, which blocked every read on 2026-10-24. It now reads MAX(rowid) (one row) and, after the run, COUNT(*) of the rows above the previous highest rowid (about a thousand). The checks keep their meaning: new Turso rows must equal new Qdrant points and the papers the ingest reported, and the new rowids must be contiguous. A paper written twice still shows, as a Turso row with no Qdrant point. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>d7b4dde
-
feat(daily): record Hugging Face Daily Papers and their upvotes each day
siddhm11 +1: Claude Opus 5.5The trending shelf reads only the current lists, whose upvote counts are overwritten as they grow, so how fast a paper rose and which topics gained papers week on week were never kept. A new stage records the last 14 lists as checked that day: hf_daily_papers (what each paper is, the day it was listed, Hugging Face's keywords and one-line summary) and hf_upvote_history (upvotes, comments, stars and rank within its day, per day checked). It runs before the ingest so a failed ingest cannot cost a day, pages past the API's 100-paper limit (29 Sep 2026 had 109), and never fails the run. --hf-only --hf-days 182 backfills the 26 weeks the API still serves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>558a4c8 -
fix(daily): make each citation batch all-or-nothing on Turso
siddhm11 +1: Claude Opus 5.5BEGIN ... COMMIT sent as a plain pipeline was not a transaction: Turso runs the statements after a failed one and the COMMIT keeps those before it, so a failed history insert would have kept the count updates and lost their rows. Checked on Turso. The batch now goes as a Hrana batch whose steps each run only if the previous one succeeded, with ROLLBACK unless COMMIT ran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>21c8033 -
feat(daily): keep a history of citation counts
siddhm11 +1: Claude Opus 5.5The citation step overwrote about 7,700 changed counts a day and kept no earlier value, so citation growth could never be computed. Each overwrite now also writes (before, after) to a citation_history table in Turso, in the same transaction as the update, one row per paper per day the count moved. Growth over any window is the sum of (citations - citations_before) for its rows. Same-day re-runs upsert and keep the first run's before value. Checked on Turso inside a rolled-back transaction; the table exists and is empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>38f3b7d -
feat(onboarding): a drawing of each research area on its card
siddhm11 +1: Claude Opus 5.5An area's name alone often means nothing outside the field: "Machine Learning" or "Condensed Matter" tells a newcomer little about what they would be choosing. Each of the 20 cards on /onboarding and /interests now shows the field doing its typical thing: a detector's box round a cat for Computer Vision, a line fitted to points with y = wx + b for Machine Learning, a question answered step by step for AI, a Feynman diagram, a Bell-pair circuit, the chord rule on an elliptic curve. The drawings are inline SVG written by scripts/build_area_art.py; the plotted ones (the curve, the helix, flow round a cylinder, the spectrogram) are computed. They take the page's colours in both themes and turn green with a picked card, and hover redraws the one annotated stroke (off under reduced motion). They are decorative to screen readers: the name and description still carry the meaning. Not images, because Hugging Face refuses binary files in pushed history. About 10 KB gzipped for all twenty. Co-A…ec199d7
-
Merge pull request #52 from siddhm11/feat/figures-everywhere
siddhm11Unverified signaturefeat(figures): background warm-up on arXiv's 15 s lane, and search thumbnails9cdb19f -
Merge pull request #51 from siddhm11/feat/vector-figures
siddhm11Unverified signaturefeat(figures): show vector figures as cleaned SVG, up to 24 per paperc019d0e
-
Merge pull request #49 from siddhm11/feat/wide-feed
siddhm11Unverified signaturefeat(feed): two-column wide feed with an interest rail476b042 -
Merge pull request #47 from siddhm11/feat/ask-this-paper
siddhm11Unverified signaturefeat(ask): answer questions from the paper's own paragraphs6a602ca -
fix(citations): a batch Semantic Scholar knows none of is all unknown
siddhm11 +1: Claude Opus 5.5S2's batch endpoint answers 400 "No valid paper ids given" when it knows none of the ids, instead of a list of nulls. The daily run sorts ids, so its last batch is papers announced a few hours earlier; on 2026-10-21 the batch from 2610.28261 on was all unknown at 08:50 UTC (all 309 found by 18:00). _post retried the 400 fourteen times (~10 min) and the run failed after a clean ingest, skipping its verify stage. That answer now means "every paper unknown", the same as a null per id, so stored counts are kept and the run goes on. Rate limits still retry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>933bf47 -
Merge origin/main into docs/session-2026-10-21
siddhm11Brings the harvest (#24, #41, #42) and the libsql fix (#45) under the redesign stack so the session's docs can be written against both.5938f71
-
fix(ingest): accept libsql:// Turso URLs
siddhm11 +1: Claude Opus 5.5Turso hands out libsql:// URLs, which urllib can't open. daily_refresh.py and refresh_citations.py already convert them to https://, but ingest_arxiv.py and ingest_backends.py did not, so the daily job worked only because the TURSO_URL secret was entered as https://. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>3e90cc0 -
Merge pull request #44 from siddhm11/feat/paper-briefing
siddhm11Unverified signaturefeat(briefing): three things to know, how it works, where you'd use itadd0458 -
Merge pull request #43 from siddhm11/feat/paper-page-v2
siddhm11Unverified signaturefeat(paper): the redesigned paper page behind PAPER_PAGE_V25e6972b -
feat(daily): harvest through OAI-PMH and report licence coverage
siddhm11 +1: Claude Opus 5.5stage_ingest passes --source oai, so the daily job uses arXiv's OAI-PMH feed instead of per-category search queries. The summary gains a licences block: new papers with a licence row, how many are open, and how many may show figures under FIGURE_LICENCES. Reported only; it never fails the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>c36035c -
feat(ingest): keep each harvested paper's licence in Turso paper_licences
siddhm11 +1: Claude Opus 5.5parse_oai_record reads <license> into licence_url and a short code (app.licences.code_from_url). New papers' licence rows go in the same Turso pipeline as their papers rows; papers already stored get theirs when OAI lists them again. Own table, never a papers column: INSERT OR REPLACE rewrites whole papers rows (trap T5). The upsert skips rows that already say the same, so daily re-harvests write nothing. Dry run over 2026-10-16: 1,833 papers kept, all with a licence (ARXIV-NONEXCLUSIVE 865, CC-BY-4.0 773, CC-BY-NC-ND 79, CC-BY-NC-SA 67, CC-BY-SA 36, CC0 13). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>da423eb -
Merge remote-tracking branch 'origin/main' into feat/daily-harvest-licences
siddhm1138e1da6 -
feat(ingest): harvest new papers through arXiv OAI-PMH
siddhm11 +1: Claude Opus 5.5arXiv's OAI-PMH interface is built for incremental harvesting: everything changed between two dates, a whole archive per request stream, about 1,300 records a page. A day across our seven archives is about 10-15 requests, where the search API needs one query per category (about 100), which is what got the daily run throttled on 2026-10-01. --source oai harvests each archive set holding our categories, keeps new- style ids from the month before --since (OAI's <created> is not the first version's date for revised papers), and reports a set complete only when its last page carries no resumption token (exit 3 otherwise). Text is NFKC- normalised and arXiv's alias categories collapsed as the search API does: 901 overlapping papers from 2026-09-29 matched rows written from the search API exactly. Requests identify themselves; a 406, like a 403, 429 or 503, is a temporary block to wait out, and other 4xx answers fail at once. Written 2026-10-01 and left uncommitted; committed unchanged. Co…3f01cfe
-
test(e2e): keep the test world's searches off the real arXiv API
siddhm11 +1: Claude Opus 5.5The seeded sidecar had no word index, so a search in the test world found nothing and fell back to export.arxiv.org: browser tests would have reached the real arXiv. The seed now builds papers_fts like the real sidecar, and ARXIV_API_URL, like ARXIV_HTML_BASE, can be pointed at the stand-in site only when RESEARCHIT_ENV=test; a test checks it cannot be redirected otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>92f723d -
test(e2e): vector figures render on the page and in the lightbox
siddhm11 +1: Claude Opus 5.5The seeded world now serves a small SVG chart at each SVG figure's path, so TRACE, whose two figures are both SVG files and showed nothing before, gets a browser test: the key figure is an .svg that loads, is served as image/svg+xml under a sandboxing policy, and opens in the lightbox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>7c261e8
-
feat(briefing): pace model calls and retry when Groq is saturated
siddhm11 +1: Claude Opus 5.5Measured live: four ~24,000-character briefing prompts in a row benched every model in the Groq chain, whose free tier is shared with search rewriting and In plain terms. Briefing calls now run one at a time at least BRIEFING_MIN_INTERVAL_S (8 s) apart, prompts are capped at 16,000 characters, and a call that finds no model available is reported as unavailable and not cached, so a later visit retries instead of waiting a day. scripts/eval_briefings.py generates briefings for the 50 papers in scripts/eval_papers.txt into a scratch database and writes a page to rate them, waiting out rate limits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>90ab33a -
test(e2e): a self-contained world and browser tests for the paper page
siddhm11 +1: Claude Opus 5.5scripts/seed_e2e.py builds a tiny metadata sidecar with the six fixture papers and two made-up ones (maths with an XSS payload; no plain summary), an app database with each page already parsed, and a stand-in for arxiv.org/html with generated figures. tests/test_e2e_paper.py drives the new page in Chromium: tabs by keyboard and remembered, figures from our own route, lightbox focus, the overflow menu, the outline, Save, console errors in both themes, layout shift under 0.1, no sideways scrolling from 390 to 1440 px, rendered maths with the payload kept as text, and the fallbacks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>faf3f76
-
test(e2e): browser checks for the v2 card and the two-column feed
siddhm11 +1: Claude Opus 5.5Against the seeded world: two columns at 1440 px with every card at or below the one served before it and no overlaps, one column at 1179 px and on a phone, no sideways scrolling, Save and title clicks carrying layout=grid2 with the §3.11 fields intact, the rail's counts and interest filter (labels rendered as text), card text tabs and the rail preference surviving a reload, and figures loading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>860f9e0 -
test(e2e): briefing and Ask in the browser; fix an outline race
siddhm11 +1: Claude Opus 5.5The seeded world gains a cached briefing and two cached answers for SatNav. New browser tests: the briefing's links and outline entries, a suggested question echoed then answered with a cite, Enter sends while Shift+Enter doesn't, a missing model says busy, the phone sheet opens and closes on Escape with focus back on its button, and the lightbox asks about its figure. Fixed on the way: the section observer could override the last outline entry at the bottom of the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>0cb3a12
-
fix(fixtures): keep the abstract when trimming arXiv pages
siddhm11 +1: Claude Opus 5.5The trimmer looked for <div class="ltx_abstract"> but arXiv writes <div id="abstract1" class="ltx_abstract">, so every fixture lost its abstract and the golden files recorded the gap. The patterns now allow attributes before the class, the fixtures and goldens are regenerated (only the abstract changed), and a test requires every fixture to have a title, an abstract and paragraphs. Found by the briefing tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>e3aa396 -
test(fixtures): six trimmed CC BY arXiv HTML pages
siddhm11 +1: Claude Opus 5.5scripts/make_arxiv_fixture.py cuts a page down to its licence box, title, abstract and chosen sections, plus stub contents and bibliography so the parser's skipping is exercised. The six pages are CC BY 4.0, credited in the README. conftest gains --update-golden for expected-output files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>e607fdb -
feat(ask): an evaluation script, and log Ask in doc 06 and CURRENT-STATE
siddhm11 +1: Claude Opus 5.5scripts/eval_ask.py asks each paper the three suggested questions and one it almost surely doesn't cover, plus any owner-written ones, and writes a page to rate the answers with the gate's numbers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1a6bc6f -
feat(scripts): baseline reading metrics for the redesign
siddhm11 +1: Claude Opus 5.5scripts/baseline_metrics.py reports readers, sessions, saves per session, Pass share, opens, open-to-save and seven-day return per ISO week, plus a read-only snapshot of /healthz/runtime. --export copies user_interactions from Turso for the owner to run; reports never contain a user id. Clicks are split by surface only from the card-fix date, because earlier clicks were all stored as recommendations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>aa9e84e
-
fix(docker): shrink the image so the HF builder can push it
siddhm11 +1: Claude Opus 5.5Every Space build since ed6d895 (and a rebuild of the unchanged b2aea4b tree) finished all steps and was then OOM-killed while pushing the image (exit 137). The image carried two avoidable copies: * `chmod -R 777 /app` rewrote the metadata of every file under /app, so its layer re-copied the 2.8 GB sidecar and all model weights. /app is now owned by uid 1000 from the start, downloads run as that user, and the code is copied with --chown; no recursive chmod. * BGE-M3's onnx/ export (2.3 GB) and the rerankers' ONNX/OpenVINO exports (371 MB for mxbai) were downloaded but never loaded. Build steps now only download (snapshot_download at the pinned revisions); the app loads the models at startup. Roughly 16 GB of image becomes ~7 GB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>fe5373a -
test(eval): search, reranker and blind LLM-judge evaluation harness
siddhm11 +1: Claude Opus 5.5scripts/embedding_eval/search: 847 known-item queries (LitSearch + synthetic) over a 98k-paper library with production's FTS sidecar; dense, hybrid and cross-encoder stages replicating production (RRF, boosts); `_sc` scores the reranker on production's stored abstract text; latency and role (related papers, taste) checks per model. scripts/embedding_eval/judge: blind pooled grading of feed, related-paper and search lists by open LLMs on Groq, with judge-validity checks. API keys are read from ~/.cache, never from the repo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>7a0f87a -
feat(search): mxbai-rerank-xsmall reranker, faster word match, pinned models
siddhm11 +1: Claude Opus 5.5Search, per doc 06 changelog 2026-10-14 and its 2026-10-15 correction: * Reranker: mixedbread-ai/mxbai-rerank-xsmall-v1 at 256 tokens replaces ms-marco-MiniLM-L-6-v2. predict() uses an Identity activation so the pipeline gets logits; mxbai's built-in sigmoid plus ours had let the title/citation boosts swamp it. On 847 known-item queries scored on the ~500-char abstracts production serves: MRR@10 0.523 -> 0.563 (+7.7%, 95% CI +4% to +11%). Depth stays 10; SEARCH_RERANK_TOP_N_IDLE (default 10) can deepen it when nothing else waits, worth it only after the abstract backfill (0.618 at depth 20 on full abstracts). * Word match drops 96 filler words and gives up after SEARCH_FTS_BUDGET_MS (1.5 s): same quality, 61% less CPU, no more 20 s searches from the any-word fallback. * Retrieval for the original query starts as soon as it is encoded instead of after the Groq rewrite; only the rewrite's own lists wait for Groq. Server: * app/compute_pool.py: model inference on it…8df68eb
-
test(eval): nine-model scorecard results path, Kaggle GPU encoder
siddhm11 +1: Claude Opus 5.5Adds the private Kaggle notebook used to encode the round-2 models and the full-text BGE-M3 fairness check on GPU (its vectors matched local encodes at mean cosine 0.999998), and corrects the scorecard's note on its targets: they were proposed after seeing round-1 results, not before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012V6kQQzERfDwhxHuiBoFJ5bc407f2 -
test(eval): one scorecard for every model, test and pairwise difference
siddhm11 +1: Claude Opus 5.5Scores every available embedding model on the same seeds, real readers and up-next moments, so any two models compare paired: per-model means with bootstrap intervals, every pairwise difference with a sign-flip permutation p-value (Holm-corrected per metric), and pass/fail against proposed user expectations for newcomers and returning readers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012V6kQQzERfDwhxHuiBoFJ5a2221eb -
test(eval): user-centred persona suite and bake-off round 2
siddhm11 +1: Claude Opus 5.5persona_eval.py scores what readers experience: the "liked X, Y, Z -> what next?" chain on real readers' time-ordered votes against a same-week candidate pool, Semantic Scholar's dense + TF-IDF mix, and a newcomer "start here" re-rank (plainly written, surveys, foundational papers) with its relevance cost. encode_round2.py adds Qwen3-Embedding-0.6B, gte-modernbert and nomic-embed to the model bake-off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012V6kQQzERfDwhxHuiBoFJ53d3bf61 -
feat(reranker): rescale profile similarities, weight recency 0.45
siddhm11 +1: Claude Opus 5.5Raw profile similarities barely vary across a reader's candidates, so recency and position decided the feed's order. The personalised branch now rescales long- and short-term similarity across the candidate set (as cold start already did) and weights recency 0.45, option C of a measured relevance/freshness frontier chosen by the project owner. Cold start keeps 0.15. Against the old formula: held-out right answer in the top 10 55.1% -> 68.4% (272 simulated readers), real-reader AUC 0.684 -> 0.703 (+0.019, CI +0.011 to +0.027, 526 readers), recent papers in the top 10 43% -> 28%. The installed code reproduces the tested reference (identical metrics at pool sizes 30/60/100; one 1.5e-6 score tie in 770 top-10s). Updates CLAUDE.md section 3.4 weight budget; logged in doc 06 changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>fd260fc -
feat(eval): embedding and ranking evaluation harness
siddhm11 +1: Claude Opus 5.5Read-only scripts that check stored vectors against fresh encodes, measure similarity quality at scale with citation links as ground truth, score real readers' votes, validate reranker changes before and after they ship (installed-code mode), map the relevance/freshness trade-off, and compare embedding models per feed step. Results stay out of the repo; the Scholar Inbox ratings are CC BY-NC-ND and are used from a local cache only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>f178c4d
-
feat(scripts): add an evaluation harness for Groq model candidates
siddhm11 +1: Claude Opus 5.5scripts/eval_groq_models.py runs each model on the production prompts and per-family parameters for all three LLM jobs, calling the model directly rather than through the failover chain so every result belongs to the model named: - rewrite: 16 queries. Latency, empty/truncated answers, the 8-word limit, and whether precise terms and titles pass through unchanged. - overview: 4 topics x 5 real papers from Turso. - explain: 8 papers. Truncation and the three-sentence format. For overview and explain it lists "unsupported terms": capitalised words, acronyms and numbers absent from the text the model was given. It is a cheap grounding proxy that over-reports, so the listed terms are meant to be read, not just counted. Calls are paced per model under the free tier's 30 RPM / 8K TPM. Re-run it whenever Groq announces a deprecation, or before reordering GROQ_MODELS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>8fdd5a7
-
fix(ingest): back off from arXiv rate limits for minutes, honouring Retry-After
siddhm11 +1: Claude Opus 5.5After a heavy night of requests arXiv started answering this host with HTTP 429 and stalled connections; retries 5, 10 and 15 s apart failed every time (cs.CL, cs.CV, cs.LG on 2026-10-01). A 429/503 now waits arXiv's Retry-After when given, else 30 s doubling to a 5 min cap, over 6 attempts; other errors still retry within seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>25ea863 -
fix(ingest): hard deadlines on network calls, stack dumps, ingest timeout
siddhm11 +1: Claude Opus 5.5A real daily-refresh ingest hung for 20 minutes at 0% CPU: the main thread was blocked in an SSL read (_buffered_readline -> SSLSocket.read -> poll) while arXiv answered fresh requests in 0.2 s. Socket timeouts bound each read, not the request, so a trickling server or a call made without a timeout can block forever, and the run would have sat until the Actions job timeout. - net_deadline.deadline(): SIGALRM wall-clock limit around every network call in the ingest (arXiv pages, Turso, Qdrant, Zilliz). Blocked syscalls are interrupted and the existing retry/failure paths take over. Tested against a local server that accepts and never answers: interrupted in under 5 s where the 100 s socket timeout would have waited. - faulthandler dumps every thread's stack every INGEST_STACK_DUMP_S (600 s) while the ingest runs, so a future stall names its line in the log. - daily_refresh: --ingest-timeout-min (60) fails the run with the captured output, stacks included, instead of hanging…e1e1d27