Fact suggestions also ask about pages named in the transcript (#1342) #1357
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/1342-mentioned-pages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1342. After the 4.7.0 deploy, the prod backfill asked about nothing, because no wiki pages were linked to those sessions. Now the pass also asks about pages the transcript names.
mention_patternand runs two queries per session, however many pages the campaign has.MAX_PAGES_PER_SESSION = 12, and anything beyond it is counted asskipped_capon the run. A linked page the transcript never names takes no place: it was never asked about, so it no longer pushes a named page out.MIN_MENTION_NAME) that isn't a small word: the existing stop words plus a_COMMONset (she, they, him, one, man…). Linked pages match as before, so a linked "Al" is still asked about. A real one-word name such as "Guard" still matches.suggest_fact_changes_backfill(force_zero_asked=True)also takes sessions whose last run asked about 0 pages:celery -A app.tasks.celery_app call app.tasks.fact_tasks.suggest_fact_changes_backfill --kwargs='{"force_zero_asked": true}'Tests:
skipped_cap, andskipped_caplanding on the run;force_zero_askedin the service and the task.The reader guards (
SEGMENT_USES, title readers) list the new reads with reasons.Checks (docker-test, committed code):
lintis clean.tests/wiki/test_fact_suggestions.py,test_transcript_bin_readers.py,test_title_readers.pyandtest_body_readers.py: 70 passed.checkspasses.🤖 Generated with Claude Code