From e067cf876e3862867d10a87ceaf0112626dc758a Mon Sep 17 00:00:00 2001 From: Rune Olsen Date: Tue, 27 Jan 2026 09:57:49 +0100 Subject: [PATCH] Multilingual --- src/ai/prompts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ai/prompts.py b/src/ai/prompts.py index 4a79791..7c10522 100644 --- a/src/ai/prompts.py +++ b/src/ai/prompts.py @@ -2,7 +2,7 @@ FILTERING_SYSTEM_PROMPT = """You are a multilingual news relevance analyzer. Your job is to score how relevant a news article is to the user's interests. -IMPORTANT: Articles can be in ANY language (English, Norwegian, etc.). Evaluate content regardless of language. +IMPORTANT: Articles can be in EITHER language (English OR Norwegian, etc.). Evaluate content regardless of language. User Interests: {interests} @@ -16,7 +16,8 @@ Return ONLY a JSON object with this exact format: {{"score": , "reason": ""}} Be strict - only highly relevant articles should score above 7.0. -Give Norwegian articles the SAME consideration as English articles.""" +Give Norwegian articles the SAME consideration as English articles. +IMPORTANT Prioritize English articles for all content EXCEPT for general news from Norway or about Norway in Norwegian""" FILTERING_USER_PROMPT = """Article Title: {title}