diff --git a/public/assets/img/logo.png b/public/assets/img/logo.png new file mode 100644 index 0000000..99dfa7e Binary files /dev/null and b/public/assets/img/logo.png differ diff --git a/public/assets/styles/base.css b/public/assets/styles/base.css index 9c9d752..2a49e9d 100644 --- a/public/assets/styles/base.css +++ b/public/assets/styles/base.css @@ -19,19 +19,19 @@ body { font-size: 0.85rem; } -h1 { - font-size: 1.49rem; +h1,.h1 { + font-size: 1.75rem; } -h2 { - font-size: 1.31rem; +h2,.h2 { + font-size: 1.35rem; } -h3 { - font-size: 1.13rem; +h3,.h3 { + font-size: 1.35rem; } -h4, h5, h6 { +h4, h5, h6,.h4,.h5,.h6 { font-size: 0.95rem; } @@ -414,4 +414,52 @@ span.think { .bubble img { max-width: 50px; max-height: 50px; -} \ No newline at end of file +} + +/*####################################*/ +.example-1, +.example-2 { + position: relative; + overflow: hidden; + display: flex; + align-items: center; + justify-content: center; +} + +.example-1 .inner, +.example-2 .inner { + position: relative; + z-index: 1; + width: 100%; +} +.example-2 .inner { + margin: 2px; +} +.example-2::before { + content: ""; + display: block; + background: linear-gradient( + 90deg, + rgba(255, 255, 255, 0) 0%, + rgba(102, 102, 102, 0.75) 50%, + rgba(255, 255, 255, 0) 100% + ); + height: 300px; + width: 100px; + transform: translate(0); + position: absolute; + animation: rotate 5s linear forwards infinite; + z-index: 0; + top: 50%; + transform-origin: top center; +} + +@keyframes rotate { + from { + transform: rotate(0); + } + + to { + transform: rotate(360deg); + } +} diff --git a/public/index.html b/public/index.html index e71f682..5b081ed 100644 --- a/public/index.html +++ b/public/index.html @@ -18,7 +18,12 @@
-

RetrieX KI-Agent

+
+
+ +
+
KI-Agent
+
powered by mitho®
diff --git a/src/Agent/AgentRunner.php b/src/Agent/AgentRunner.php index b5e962d..5b4b975 100644 --- a/src/Agent/AgentRunner.php +++ b/src/Agent/AgentRunner.php @@ -70,7 +70,7 @@ final readonly class AgentRunner - Maximal 6 Keywords, besser weniger. - Entferne Füllwörter, Höflichkeitsformen und irrelevante Wörter. - Erhalte Produktnamen, Marken, Modellnummern und zusammengesetzte Begriffe exakt, wenn sie relevant sind. - - Zahlen, die zu einem Produktnamen oder Modell gehören, müssen erhalten bleiben. + - Zahlen, die zu einem Produktnamen oder Modell gehören (zb Indikator 300 oder Testomat 808), müssen erhalten bleiben. - Trenne die Begriffe nur durch Leerzeichen. Ausgabeformat: @@ -114,7 +114,7 @@ final readonly class AgentRunner $knowledgeChunks = $this->retriever->retrieve($prompt); // --------------------------------------------------------- - // 4) Optional commerce/shop search + // 4) commerce/shop search // --------------------------------------------------------- $commerceMeta = $this->commerceIntentLite->detect($prompt); diff --git a/src/Knowledge/Retrieval/NdjsonHybridRetriever.php b/src/Knowledge/Retrieval/NdjsonHybridRetriever.php index 6977ece..b12fd03 100644 --- a/src/Knowledge/Retrieval/NdjsonHybridRetriever.php +++ b/src/Knowledge/Retrieval/NdjsonHybridRetriever.php @@ -29,7 +29,7 @@ final class NdjsonHybridRetriever implements RetrieverInterface private const THRESHOLD_FLOOR = 0.83; private const THRESHOLD_CEIL = 0.92; - private const EMPTY_RRF_FALLBACK_TOPN = 5; + private const EMPTY_RRF_FALLBACK_TOPN = 1; public function __construct( private readonly NdjsonChunkLookup $lookup, diff --git a/src/Knowledge/Retrieval/QueryEnricher.php b/src/Knowledge/Retrieval/QueryEnricher.php index 674da37..ca0cdb1 100644 --- a/src/Knowledge/Retrieval/QueryEnricher.php +++ b/src/Knowledge/Retrieval/QueryEnricher.php @@ -121,6 +121,7 @@ final class QueryEnricher 'Wasserhärte' => "Resthärte", 'Gerät' => 'Modell', 'Indikator' => 'Chemie', + 'Indikatoren' => 'Indikator', 'Wasserhärte-Grenzwert'=>'Resthärte', 'Resthärte-Grenzwert'=>'Wasserhärte' ]; diff --git a/src/Shopware/ShopwareCriteriaBuilder.php b/src/Shopware/ShopwareCriteriaBuilder.php index d4d22a4..336b49c 100644 --- a/src/Shopware/ShopwareCriteriaBuilder.php +++ b/src/Shopware/ShopwareCriteriaBuilder.php @@ -84,7 +84,7 @@ final class ShopwareCriteriaBuilder } if ($query->searchText !== '') { - $criteria['term'] = $query->searchText; + $criteria['search'] = $query->searchText; } $filters = [ diff --git a/src/Shopware/StoreApiClient.php b/src/Shopware/StoreApiClient.php index ccaa4eb..3245962 100644 --- a/src/Shopware/StoreApiClient.php +++ b/src/Shopware/StoreApiClient.php @@ -31,7 +31,7 @@ final readonly class StoreApiClient */ public function searchProducts(array $criteria): array { - $url = rtrim($this->baseUrl, '/') . '/store-api/product'; + $url = rtrim($this->baseUrl, '/') . '/store-api/search'; $response = $this->httpClient->request('POST', $url, [ 'headers' => [ diff --git a/templates/admin/base.html.twig b/templates/admin/base.html.twig index dd482eb..b1cc841 100644 --- a/templates/admin/base.html.twig +++ b/templates/admin/base.html.twig @@ -18,14 +18,17 @@ {# ============================= #} {# Top Navigation #} {# ============================= #} +{% if app.user %} + +{% endif %} {# ============================= #} {# Layout Container #} {# ============================= #} diff --git a/templates/admin/model_config/list.html.twig b/templates/admin/model_config/list.html.twig index 5e8a0f3..fcc7761 100644 --- a/templates/admin/model_config/list.html.twig +++ b/templates/admin/model_config/list.html.twig @@ -192,7 +192,7 @@ des aktiven Modells aus. Pro Modell kann nur eine Version aktiv sein.

-

KI-Agent Live-Test

+

KI-Live-Test

diff --git a/templates/admin/security/login.html.twig b/templates/admin/security/login.html.twig index 04e0bea..4a5e262 100644 --- a/templates/admin/security/login.html.twig +++ b/templates/admin/security/login.html.twig @@ -10,10 +10,13 @@
-

- Heyl Neomeris -

-

KI/RAG System-Login

+
+

+ Heyl Neomeris +

+ +

KI/RAG System-Login

+
{% if error %}