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
Update Wikipedia citations (it's a stupid way but I just need it to work ASAP, will cleanmm code layer) and AI humanizing parsing (copilot updated the parsing because it was a busywork task and took two seconds)
'You are a meticulous citation metadata extractor.',
625
-
'Return ONLY strict JSON with keys "title","author","year","publisher","site","accessed". Empty or missing values must be null.',
626
-
'Never include prose, explanations, or markdown fences—respond with JSON only. Try to assume and use deep context for finding value.',
627
-
`If the page is blocked (cookie walls, headless browser issues) and you cannot extract anything reliable, respond ONLY with the keyword ${AI_METADATA_FALLBACK_KEYWORD}.`,
669
+
'extract citation metadata and return only strict json with keys "title","author","year","publisher","site","accessed". empty values must be null.',
670
+
'never include prose, explanations, or markdown fences. respond with json only.',
671
+
'if context starts with "title: [text]", use that exact text as title. otherwise extract from page header or h1.',
672
+
'never use descriptions or summaries as title.',
673
+
'for authors: look for "by [name]" or "author: [name]" patterns in the content. extract the actual person name, not site credits.',
674
+
'for dates: look for "published time:" header or dates in format like "december 4, 2025" or "2025-12-04". extract year at minimum.',
675
+
'for wikipedia: title from article name only. author should be "contributors to wikimedia projects".',
676
+
`if page is blocked or unreadable, respond only with keyword ${AI_METADATA_FALLBACK_KEYWORD}.`,
677
+
'if you can not find any of the above (by [name], or other specific strings) use common sense and see if there are any pother identifiers, maybe in the text itself, to find the correct data',
0 commit comments