From f2b2dcbb923357447f1b6c1129a608006e01e468 Mon Sep 17 00:00:00 2001 From: Dzmitry Vabishchewich Date: Tue, 15 Sep 2026 16:30:52 +0500 Subject: [PATCH] fix: resolve to the World aggregate only on explicit global/worldwide wording The normalization prompt let the model treat queries with no geography as global, injecting a spurious "World" reference area that later fails dimension selection (no World value in many datasets) and returns "No data was found for Country/Reference area World". Scope the World rewrite (#438) to EXPLICIT global/worldwide wording and forbid adding a geography when none is mentioned. This upstreams the swissre channel-config override validated in the swissre data-query eval, so that override can be removed. Co-Authored-By: Claude Fable 5 --- statgpt/app/default_prompts/assets/data_query.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/statgpt/app/default_prompts/assets/data_query.yaml b/statgpt/app/default_prompts/assets/data_query.yaml index f8645bc7..94983060 100644 --- a/statgpt/app/default_prompts/assets/data_query.yaml +++ b/statgpt/app/default_prompts/assets/data_query.yaml @@ -193,9 +193,12 @@ normalizationPrompt: >- "EU" must be resolved to "European Union", but it MUST NOT be expanded to its member countries. - - if the query asks for data at a global/worldwide scope (words like "global", - "globally", "worldwide", "world"), rewrite it so the reference area is explicitly - the "World" region; keep the rest of the query unchanged. + - rewrite the reference area as the "World" region ONLY IF the query EXPLICITLY asks + for a global/worldwide scope (words like "global", "globally", "worldwide", "world"); + keep the rest of the query unchanged. + + - if the query does not mention any geography, DO NOT add one. + An unspecified geography IS NOT a request for global/worldwide data. Examples: @@ -203,6 +206,8 @@ normalizationPrompt: >- 2. give me consumer price index for Germany -> give me consumer price index (CPI) for Germany 3. what is global unemployment? -> what is unemployment for the World? 4. show me worldwide population -> show me population for the World + 5. show me unemployment rate -> show me unemployment rate + (no geography mentioned, so none is added) namedEntitiesPrompt: >- You are an expert in named entity recognition and text labeling.