optimize code

This commit is contained in:
team2
2026-03-01 19:33:54 +01:00
parent cfd67e1e3c
commit e1c3993c96
5 changed files with 9 additions and 10 deletions

View File

@@ -293,6 +293,7 @@ final class NdjsonHybridRetriever implements RetrieverInterface
$topK = $vectorTopKBase;
switch ($salesIntent) {
case SalesIntentLite::OBJECTION:
case SalesIntentLite::PRICING:
$threshold += 0.02;
break;
@@ -301,10 +302,6 @@ final class NdjsonHybridRetriever implements RetrieverInterface
$topK = (int)round($vectorTopKBase * 1.4);
break;
case SalesIntentLite::OBJECTION:
$threshold -= 0.02;
break;
case SalesIntentLite::IMPLEMENTATION:
$topK = (int)round($vectorTopKBase * 1.3);
break;
@@ -315,7 +312,7 @@ final class NdjsonHybridRetriever implements RetrieverInterface
case SalesIntentLite::DISCOVERY:
default:
$threshold -= 0.03;
$threshold += 0;
break;
}

View File

@@ -12,7 +12,7 @@ final readonly class TagVectorSearchClient
/**
* Minimum similarity score required for a tag to be considered.
*/
private const MIN_SCORE = 0.4;
private const MIN_SCORE = 0.72;
/**
* Hard limit to prevent excessive requests.

View File

@@ -97,7 +97,7 @@
<a class="nav-link text-light {% if route starts with 'admin_ingest_profile' %}active fw-bold{% endif %}"
href="{{ path('admin_ingest_profile_list') }}">
<i class="bi bi-diagram-3-fill"></i> Indexierungsprofile (Ingest Profiles)
<i class="bi bi-diagram-3-fill"></i> Indexierungsprofile (Ingest)
</a>
<hr class="border-secondary">
@@ -108,7 +108,7 @@
<a class="nav-link text-light {% if route starts with 'admin_model_config' %}active fw-bold{% endif %}"
href="{{ path('admin_model_config_list') }}">
<i class="bi bi-motherboard-fill"></i> Modell-Generierung (Matrix Parameter)
<i class="bi bi-motherboard-fill"></i> LLM-Setup (Parameter)
</a>
<hr class="border-secondary">
<div class="text-info text-uppercase small mb-2">

View File

@@ -80,6 +80,7 @@
{# Profile Tabelle #}
{# ============================= #}
<h2 class="text-light mb-3">Profile</h2>
<div class="card bg-black border-secondary mb-5">
<div class="card-body p-0">
@@ -182,10 +183,11 @@
{# Struktur-Diff #}
{# ============================= #}
<h2 class="text-light mb-3">Index-Struktur Vergleich</h2>
<div class="card bg-black border-secondary">
<div class="card-body text-light">
<h5 class="text-info mb-3">Index-Struktur Vergleich</h5>
{% if indexMeta %}
<div class="mb-3 small text-light">

View File

@@ -64,7 +64,7 @@
</div>
</div>
<h2 class="text-light mb-3">LLM Setup-Profile</h2>
<div class="card bg-black border-secondary">
<div class="card-body p-0">