Repository navigation
Feat/evals recall hardening - #2
Merged
Merged
Conversation
Personalization: per-item "opened" events fired for every item whenever an email or the dashboard loaded, so the interest vector learned "was sent", not "was read" (v1 ranked worse than its own static-profile fallback). Signals are now clicks, explicit up/down feedback and exposure-aware skips, with recency decay and a smooth profile/history blend. Ranked order is persisted and shown. Security/correctness: HMAC-signed public engagement links (sequential /r/<id> exposed every user's saved URLs), scanner-safe feedback, SSRF guard on every redirect hop, HTML-escaped emails, hostname-based URL classification, URL dedupe, row-claim leases (no double processing), bounded retries, real HTTP failure reasons, paywall-preview detection, deterministic read time, whole- document summarization with prompt-injection framing, local-day caps, and the Telegram "link NOT saved" false error after a successful save. Active recall: grounded quiz cards drafted with each summary (evidence quote verified in code), Leitner scheduling, LLM grading via /quiz and a dashboard Recall page, retention stats. LLM layer: single client with timeouts, retryDelay-aware retries, fail-fast on daily caps, per-model pacing, token/latency tracing; Gemini 3.x thinking_level instead of deprecated temperature; default model gemini-3.5-flash-lite. Infra: Alembic migrations, 103 tests on real Postgres, CI, and an eval suite (extraction, LLM-judged summary A/B, recall grader, closed-loop ranking sim) with regression gates - all 8 pass; results in backend/evals/REPORT.md.
All 18 v2 docs are now scored by the title-aware judge (faithfulness 0.973, 22% of docs with any unsupported claim). Paired A/B grows from 5 to 8 docs: v1 0.839 -> v2 0.966. Recall-card stats now cover 32 cards. All 8 gates pass. Also fixes the K-sweep line in the report printing string keys when the report is rebuilt from saved JSON.
All 18 docs for both prompt versions are now scored by the title-aware judge: faithfulness v1 0.846 -> v2 0.973, docs with any unsupported claim 50% -> 22%, coverage 4.44 -> 4.72. All 8 gates pass. README cron examples now use the X-Cron-Key header.
Found while capturing real screenshots of the dashboard:
- Skips landed two dispatches late. The send cycle infers skips before
building the next dispatch, while the previous one is still the latest,
and inference excluded the latest send. It now uses a 12-hour grace
window instead, so yesterday's ignored items reach today's ranking.
Regression test added.
- Mobile: the bottom tab bar rendered at the top of the screen (the
header's backdrop-filter made it the containing block for the fixed
nav), had 5 columns for 6 tabs, pushed the theme toggle to the middle,
and there was no sign-out on phones.
- Wire rows on desktop put the status label on top of the dot and pushed
the time onto a second line (explicit row-start, 5 columns for 6 cells).
- Signal showed raw type keys ("Hn", "Github"); it now uses the shared
labels. Recall copy said cards unlock on "open"; they unlock on a click
or upvote.
- scripts/demo_summary.py read a field the summarizer no longer returns;
it now prints computed read time, the takeaway and grounded cards.
New screenshots of every dashboard page (dark, light, phone) and the email, taken from a local demo account seeded with real pipeline outputs, with a recall answer graded live. Adds a dashboard tour and an active-recall section, fixes stale descriptions of engagement signals, the 15-event threshold, cron auth and the architecture diagram, and replaces the v1 example summary with current output.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.