From 5b18922d35c667b99f85965d5434a1477949dab0 Mon Sep 17 00:00:00 2001 From: 732642856 <732642856@qq.com> Date: Mon, 20 Jul 2026 15:50:09 +0800 Subject: [PATCH] fix: improve real case e2e routing --- ...e_route_optimization_summary_2026_07_20.json | 17 +++++++++++++++++ ...capture_commercial_astrology_e2e_contexts.py | 15 +++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 artifacts/real_case_site_e2e_summary/real_case_website_e2e_route_optimization_summary_2026_07_20.json diff --git a/artifacts/real_case_site_e2e_summary/real_case_website_e2e_route_optimization_summary_2026_07_20.json b/artifacts/real_case_site_e2e_summary/real_case_website_e2e_route_optimization_summary_2026_07_20.json new file mode 100644 index 00000000..9d279a97 --- /dev/null +++ b/artifacts/real_case_site_e2e_summary/real_case_website_e2e_route_optimization_summary_2026_07_20.json @@ -0,0 +1,17 @@ +{ + "batch_max_items": 20, + "batch_offset": 0, + "boundary": "Route optimization smoke summary for public real-case E2E capture; not prediction accuracy proof.", + "captured_count": 20, + "core_status_counts": { + "ready": 20 + }, + "created_at": "2026-07-20", + "missing_route_layer_total": 0, + "route_counts": { + "finance": 8, + "relationship": 4, + "timing": 8 + }, + "scope": "real_case_website_e2e_route_optimization_summary" +} diff --git a/scripts/capture_commercial_astrology_e2e_contexts.py b/scripts/capture_commercial_astrology_e2e_contexts.py index feea9e8e..d42856ae 100644 --- a/scripts/capture_commercial_astrology_e2e_contexts.py +++ b/scripts/capture_commercial_astrology_e2e_contexts.py @@ -80,6 +80,17 @@ def _capture_body_for_real_case(case: dict[str, Any], prompt: str) -> dict[str, "education": "career", } themes = [theme_map.get(domain, domain) for domain in case["domains"]] + prompt_prefix = "" + if "marriage" in case["domains"] or "family" in case["domains"]: + prompt_prefix = "婚恋 relationship marriage: " + elif "wealth" in case["domains"]: + prompt_prefix = "财富 finance wealth: " + elif "timing" in case["domains"] or "annual" in case["domains"]: + prompt_prefix = "应期 timing when: " + elif "health" in case["domains"]: + prompt_prefix = "健康 health: " + elif "migration" in case["domains"]: + prompt_prefix = "迁移 foreign career: " return { "year": year, "month": month, @@ -90,8 +101,8 @@ def _capture_body_for_real_case(case: dict[str, Any], prompt: str) -> dict[str, "lon": birth["lon"], "tz": birth["tz"], "city": birth["place"], - "question": prompt, - "question_text": prompt, + "question": f"{prompt_prefix}{prompt}", + "question_text": f"{prompt_prefix}{prompt}", "theme": themes, "evaluation_domains": case["domains"], "entry_mode": "direct_chart",