checkpoint: 提交当前工作区代码(同义词配置初版 + 既有流程改动)
- 新增 inq_synonym 表、62组同义词种子与智能体只读接口 - Python 同义词加载/归一化与 1板/2箱 机读 - 同步当前分支既有协作、报价识别、陆运等改动
This commit is contained in:
@@ -59,6 +59,13 @@ def assemble_sea_query(facts: dict[str, Any] | None) -> dict[str, Any]:
|
||||
src = apply_quote_date_default(
|
||||
{str(k): str(v) for k, v in dict(facts or {}).items() if v is not None}
|
||||
)
|
||||
# 最后一层兜底:40尺高柜→40HQ、门到门等标准值;配置不可用时原样。
|
||||
try:
|
||||
from agent.policy.synonym import apply_value_synonyms
|
||||
|
||||
src = apply_value_synonyms(src, "SEA")
|
||||
except Exception:
|
||||
pass
|
||||
origin = str(src.get("起运港") or "").strip()
|
||||
dest = str(src.get("目的港") or "").strip()
|
||||
cargo = str(src.get("品名") or "").strip()
|
||||
|
||||
Reference in New Issue
Block a user