optimize code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user