fix history anchor
This commit is contained in:
@@ -638,6 +638,39 @@ parameters:
|
||||
- kostet
|
||||
- shopsuche
|
||||
- shop-suche
|
||||
rag_anchor_enrichment:
|
||||
enabled: true
|
||||
# Enriches overly narrow numeric shop queries with a product anchor from
|
||||
# retrieved RAG records when the same record explicitly contains the
|
||||
# requested numeric value/unit. This prevents queries such as "0,02"
|
||||
# when RAG already identified a concrete product such as a device model.
|
||||
min_score: 120
|
||||
max_query_terms: 6
|
||||
early_chunk_bonus_max: 10
|
||||
template: '{anchor} {query} {subject}'
|
||||
scores:
|
||||
exact_value_with_unit: 120
|
||||
exact_value_only: 40
|
||||
anchor_bonus: 50
|
||||
numeric_focus_patterns:
|
||||
- '/(?P<value>\d+(?:[,.]\d+)?)\s*(?P<unit>°?\s*d\s*h|dh|dH)/iu'
|
||||
product_title_patterns:
|
||||
- '/#\s*Produkt\s+Titel:\s*`(?P<title>[^`]+)`/iu'
|
||||
- '/\*\*Produktname:\*\*\s*(?P<title>[^\r\n]+)/iu'
|
||||
anchor_bonus_patterns:
|
||||
- '/\b[\p{L}][\p{L}\p{N}®+._-]*(?:\s+|[-_])\d{2,5}\b/u'
|
||||
subject_terms:
|
||||
- resthärte
|
||||
- resthaerte
|
||||
- wasserhärte
|
||||
- wasserhaerte
|
||||
- gesamthärte
|
||||
- gesamthaerte
|
||||
- härte
|
||||
- haerte
|
||||
- grenzwert
|
||||
- messung
|
||||
|
||||
language_preservation:
|
||||
enabled: true
|
||||
language_markers:
|
||||
|
||||
Reference in New Issue
Block a user