fix: improve real case e2e routing

This commit is contained in:
732642856
2026-07-20 15:50:09 +08:00
parent 10c40d0341
commit 5b18922d35
2 changed files with 30 additions and 2 deletions
@@ -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"
}
@@ -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",