You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sanitize document titles + drop repeated icon-glyph marker rows
Title sanitize: an ingest title with invalid UTF-8 bytes (e.g. a client
that mangled an em-dash in the multipart field) made the Postgres insert
fail with "db write failed" and 500 the whole upload. sanitizeTitle now
coerces the title to valid UTF-8 and strips control chars before the DB
write; the parsed-title path is likewise run through cleanForLLM. A bad
title byte can no longer fail an ingest.
Cover-page furniture: isRepeatedMarkerLine drops rows that are mostly the
same short token repeated — the artifact of an icon glyph rendered as
text and stamped once per item (e.g. the ORCID "iD" logo on a paper
byline, "iD iD iD iD"), which the font heuristic otherwise surfaced as
junk author-block sections. Real prose never repeats an identical
<=2-char token as >=60% of a >=3-token line, so this is safe.
@
0 commit comments