You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3da79ee
Browse filesBrowse the repository at this point in the historyBrowse files
feat: multi-source label index, parse_title_fields, OrderPage data split
Address structural-parsing recall problems found via live engine testing
on funpaybotengine PR #35: structure built from data-fields JSON keeps
English IDs while OfferPage / OrderPage render localized labels, leaving
get_structured_fields with ~1/8 recall on real data.
- SubcategoryFieldDef gains casefolded `aliases: set[str]`; OfferFieldsParser
registers field id and form <label> as aliases. label_map / lower_label_map
now index aliases. New `lookup_field_id`, `add_alias`, and heuristic
`enrich_from_offer` (matches by SELECT/DROPDOWN option value).
- OfferPreview / OrderPreview gain `parse_title_fields(structure)` (cherry-
picked from the lost feature/subcategory-structure-parser commits and
adapted to the dict-based fields layout). SELECT/DROPDOWN segments are
validated against `options`; unmatched segments are dropped.
- OrderPage data is split into `metadata` (canonical RU/EN/UA-aware order
fields) and `lot_fields` (everything else). `get_structured_fields` now
reads `lot_fields` only, eliminating false positives from order-metadata
labels colliding with structural ones. `data` is preserved for back-compat.
- FieldCondition and SubcategoryStructure now extend FunPayObject with
`raw_source`, removing the need for the asdict() shim in engine
pydantic validators.
- Bump 0.8.0 -> 0.8.2.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments