optimize weigths by rag and shop
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Config;
|
||||
|
||||
class CommerceIntentConfig
|
||||
final class CommerceIntentConfig
|
||||
{
|
||||
public function getStrongSignalsList(): array
|
||||
{
|
||||
@@ -13,10 +15,24 @@ class CommerceIntentConfig
|
||||
'kunde',
|
||||
'online',
|
||||
'produkt',
|
||||
'artikel',
|
||||
'sku',
|
||||
'Artikel',
|
||||
'kaufen',
|
||||
'kostet',
|
||||
|
||||
// Search / product discovery signals
|
||||
'suche',
|
||||
'such',
|
||||
'finde',
|
||||
'finden',
|
||||
|
||||
// Product-type signals for technical/commercial requests
|
||||
'analysegerät',
|
||||
'analysegeraet',
|
||||
'messgerät',
|
||||
'messgeraet',
|
||||
'analysator',
|
||||
'analyzer',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class PromptBuilderConfig{
|
||||
* The shop search may return many candidates, but the LLM should only see
|
||||
* the most relevant top subset after local reranking.
|
||||
*/
|
||||
public const MAX_SHOP_RESULTS_IN_PROMPT = 10;
|
||||
public const MAX_SHOP_RESULTS_IN_PROMPT = 8;
|
||||
|
||||
/**
|
||||
* Technical product prompts should be answered like documentation,
|
||||
@@ -75,6 +75,8 @@ class PromptBuilderConfig{
|
||||
'wasserhärte',
|
||||
'hardness',
|
||||
'testomat',
|
||||
'chlor',
|
||||
'chlormessung',
|
||||
];
|
||||
|
||||
public const ACCESSORY_REQUEST_KEYWORDS = [
|
||||
@@ -92,5 +94,4 @@ class PromptBuilderConfig{
|
||||
'ergänzung',
|
||||
'ergaenzung',
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
78
src/Config/ShopServiceConfig.php
Normal file
78
src/Config/ShopServiceConfig.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
namespace App\Config;
|
||||
|
||||
class ShopServiceConfig
|
||||
{
|
||||
public const DEVICE_QUERY_KEYWORDS = [
|
||||
'analysegerät',
|
||||
'analysegeraet',
|
||||
'messgerät',
|
||||
'messgeraet',
|
||||
'analysator',
|
||||
'analyzer',
|
||||
'gerät',
|
||||
'geraet',
|
||||
'monitor',
|
||||
'controller',
|
||||
'gerät für',
|
||||
'geraet fuer',
|
||||
];
|
||||
|
||||
public const ACCESSORY_QUERY_KEYWORDS = [
|
||||
'zubehör',
|
||||
'zubehor',
|
||||
'reagenz',
|
||||
'reagent',
|
||||
'indikator',
|
||||
'indicator',
|
||||
'kit',
|
||||
'set',
|
||||
'ersatz',
|
||||
'verbrauchsmaterial',
|
||||
'consumable',
|
||||
'dazu',
|
||||
'passend',
|
||||
'passende',
|
||||
'passendes',
|
||||
];
|
||||
|
||||
public const ACCESSORY_PRODUCT_KEYWORDS = [
|
||||
'reagenz',
|
||||
'reagent',
|
||||
'indikator',
|
||||
'indicator',
|
||||
'kit',
|
||||
'set',
|
||||
'verbrauchsmaterial',
|
||||
'consumable',
|
||||
'zubehör',
|
||||
'zubehor',
|
||||
'ersatz',
|
||||
'nachfüll',
|
||||
'nachfuell',
|
||||
'refill',
|
||||
'lösung',
|
||||
'loesung',
|
||||
'solution',
|
||||
'teststreifen',
|
||||
'test strip',
|
||||
];
|
||||
|
||||
public const DEVICE_PRODUCT_KEYWORDS = [
|
||||
'analysegerät',
|
||||
'analysegeraet',
|
||||
'messgerät',
|
||||
'messgeraet',
|
||||
'analysator',
|
||||
'analyzer',
|
||||
'monitor',
|
||||
'controller',
|
||||
'online-analysator',
|
||||
'online analysator',
|
||||
'online-analysegerät',
|
||||
'online analysegeraet',
|
||||
'online analyzer',
|
||||
'online monitor',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user