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

View File

@@ -12,7 +12,7 @@ final readonly class TagVectorSearchClient
/** /**
* Minimum similarity score required for a tag to be considered. * 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. * 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 %}" <a class="nav-link text-light {% if route starts with 'admin_ingest_profile' %}active fw-bold{% endif %}"
href="{{ path('admin_ingest_profile_list') }}"> 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> </a>
<hr class="border-secondary"> <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 %}" <a class="nav-link text-light {% if route starts with 'admin_model_config' %}active fw-bold{% endif %}"
href="{{ path('admin_model_config_list') }}"> 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> </a>
<hr class="border-secondary"> <hr class="border-secondary">
<div class="text-info text-uppercase small mb-2"> <div class="text-info text-uppercase small mb-2">

View File

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

View File

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