From e5e1e215cdcea0376c07c16568c7882ec296790e Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Thu, 16 May 2024 10:29:34 +0200 Subject: [PATCH] PR feedback - Change model names --- .../action/filter/ShardBulkInferenceActionFilterIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/action/filter/ShardBulkInferenceActionFilterIT.java b/x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/action/filter/ShardBulkInferenceActionFilterIT.java index 61a4e4ef50f93..1f5d69a38f2ae 100644 --- a/x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/action/filter/ShardBulkInferenceActionFilterIT.java +++ b/x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/action/filter/ShardBulkInferenceActionFilterIT.java @@ -145,7 +145,7 @@ private void storeSparseModel() throws Exception { Model model = new TestSparseInferenceServiceExtension.TestSparseModel( TestSparseInferenceServiceExtension.TestInferenceService.NAME, new TestSparseInferenceServiceExtension.TestServiceSettings( - TestSparseInferenceServiceExtension.TestInferenceService.NAME, + "sparse_model", null, false ) @@ -157,7 +157,7 @@ private void storeDenseModel() throws Exception { Model model = new TestDenseInferenceServiceExtension.TestDenseModel( TestDenseInferenceServiceExtension.TestInferenceService.NAME, new TestDenseInferenceServiceExtension.TestServiceSettings( - TestDenseInferenceServiceExtension.TestInferenceService.NAME, + "dense_model", randomIntBetween(1, 100), // dot product means that we need normalized vectors; it's not worth doing that in this test randomValueOtherThan(SimilarityMeasure.DOT_PRODUCT, () -> randomFrom(SimilarityMeasure.values()))