50 lines
1.8 KiB
YAML
50 lines
1.8 KiB
YAML
# Shop search-repair configuration.
|
|
# YAML is the source of truth; SearchRepairConfig intentionally contains no PHP defaults.
|
|
parameters:
|
|
retriex.search_repair.config:
|
|
strict_requested_accessory_code_repair: true
|
|
prefer_prompt_anchored_model_for_requested_accessory_code: true
|
|
|
|
direct_product_attribute_lookup: {}
|
|
requested_accessory_code_fallback_query_templates:
|
|
- '{term} {code}'
|
|
# Requested-accessory code terms are resolved from
|
|
# config/retriex/vocabulary.yaml view search_repair.requested_accessory_code_terms.
|
|
# Local requested_accessory_code_fallback_terms and
|
|
# requested_accessory_code_context_prefix_terms lists may still be added here as
|
|
# explicit project overrides.
|
|
requested_accessory_code_proximity_window: 1600
|
|
|
|
specific_model_candidate_patterns: []
|
|
limits:
|
|
top_product_log_limit: 3
|
|
|
|
# Character codes preserve the previous PHP trim charlist:
|
|
# space, tab, LF, CR, NUL, vertical tab, double quote, single quote,
|
|
# backtick, dot, comma, semicolon, colon, hyphen.
|
|
sanitize_trim_character_codes: [32, 9, 10, 13, 0, 11, 34, 39, 96, 46, 44, 59, 58, 45]
|
|
product_key_separator: '|'
|
|
|
|
scores:
|
|
candidate_digit: 4
|
|
candidate_word_count_cap: 4
|
|
specificity_boost: 3
|
|
primary_query_overlap_threshold: 0.9
|
|
prompt_match_weight: 3
|
|
primary_query_match_weight: 2
|
|
repair_signal_match_weight: 4
|
|
primary_result_order_bonus: 1
|
|
token_intersection_score: 2
|
|
numeric_token_match_score: 4
|
|
|
|
patterns:
|
|
model_candidate: '/(?!)/u'
|
|
accessory_candidate_template: '/(?!)/u'
|
|
requested_accessory_code: '/(?!)/u'
|
|
accessory_or_bundle_template: '/(?!)/u'
|
|
model_like: '/(?!)/u'
|
|
specificity_boost_template: '/(?!)/u'
|
|
contains_digit: '/\d/u'
|
|
whitespace_collapse: '/\s+/u'
|
|
tokenize_cleanup: '/[^\p{L}\p{N}\s\-]+/u'
|