feat: полнота извлечения — ресурсные индексы/машинисты, структура стоимости, сметная цена КА

Ре-аудит покрытия .gge: добавлено что выбрасывалось — индекс пересчёта ресурсов
с обоснованием, детали машинистов, структура стоимости расценки (машины/материалы/
зарплата), comment позиции, накладные/прибыль в рублях, возвратные материалы.
Фикс Transport (цена из PricePerUnitCur, была 0). КА: сметная цена EstimateWithoutVAT
(идёт в смету, ≠ рыночная) + склад + перевозка. Все парсеры сведены в gge_deep
(parse_ka перенесён из build-скрипта), убраны дубли хелперов. Добавлены юнит-тесты
парсеров (tests/test_gge_deep.py, 4/4). verify_corpus exit 0, обезличивание чисто
(email/телефон/ИНН = 0).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-06-09 01:20:59 +10:00
co-authored by Claude Opus 4.8
parent 4e0777e078
commit 6f78d9a32c
9 changed files with 308 additions and 95 deletions
+3 -2
View File
@@ -128,8 +128,9 @@ def find_in_real_estimates(query: str, top_k: int = 5) -> list[dict]:
results.append((score, it["freq"], it))
results.sort(key=lambda x: (x[0], x[1]), reverse=True)
keys = ("code", "name", "unit", "prefix", "kind", "freq", "norm_sets", "regions",
"qty", "unit_cost_cur", "labor_ch", "machinist_ch", "price_base",
"price_cur", "overhead", "profit", "coefficients", "resources", "examples")
"qty", "comment", "unit_cost_cur", "cost_structure", "labor_ch",
"machinist_ch", "price_base", "price_cur", "overhead", "profit",
"coefficients", "resources", "examples")
return [{k: it.get(k) for k in keys} for _, _, it in results[:top_k]]