refactor!: make addrkit a multi-city address normalizer
- remove the events/outages module, ArcGIS adapter, portal config and event statuses - add a configurable city dictionary/parser and make City part of StreetKey - seed: read city/city_name, namespace IDs by city, keep structures distinct - fix reliability: schema v2 with fail-closed load, deterministic ordering, input limits, config validation, atomic DB publish, LLM response caps - add read-only shadow mode comparing the old ES path with addrkit - breaking: registry.db must be re-seeded; config has no portal section
This commit is contained in:
+7
-1
@@ -2,7 +2,13 @@
|
||||
"addr": "127.0.0.1:6172",
|
||||
"data_path": "dev/registry.db",
|
||||
"log_level": "warn",
|
||||
"cities": [
|
||||
{
|
||||
"name": "Новосибирск",
|
||||
"aliases": ["нск", "новосиб", "новосибирская область", "нсо"]
|
||||
}
|
||||
],
|
||||
"default_city": "Новосибирск",
|
||||
"resolve": { "fuzzy_threshold": 0.82, "ambiguity_margin": 0.06, "max_candidates": 5 },
|
||||
"portal": { "url": "https://map.novo-sibirsk.ru/elitegis/rest/services/maps/disconnections/MapServer/101/query", "timeout_seconds": 2, "retries": 0 },
|
||||
"llm": { "enabled": true, "url": "http://127.0.0.1:6193", "token": "EMPTY", "model": "qwen3-14b-awq", "timeout_seconds": 5, "max_tokens": 512, "disable_thinking": true }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user