Skip to content

Commit 1140130

Browse files
committed
VoyageAI conflict
1 parent aee541b commit 1140130

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/voyageai/VoyageAIService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ protected void doChunkedInfer(
288288
VoyageAIModel voyageaiModel = (VoyageAIModel) model;
289289
var actionCreator = new VoyageAIActionCreator(getSender(), getServiceComponents());
290290

291-
List<EmbeddingRequestChunker.BatchRequestAndListener> batchedRequests = new EmbeddingRequestChunker(
291+
List<EmbeddingRequestChunker.BatchRequestAndListener> batchedRequests = new EmbeddingRequestChunker<>(
292292
inputs.getInputs(),
293293
getBatchSize(voyageaiModel),
294294
voyageaiModel.getConfigurations().getChunkingSettings()

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/external/action/voyageai/VoyageAIActionCreatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
import java.util.Map;
3737
import java.util.concurrent.TimeUnit;
3838

39+
import static org.elasticsearch.xpack.core.inference.results.TextEmbeddingFloatResultsTests.buildExpectationFloat;
3940
import static org.elasticsearch.xpack.inference.Utils.inferenceUtilityPool;
4041
import static org.elasticsearch.xpack.inference.Utils.mockClusterServiceEmpty;
4142
import static org.elasticsearch.xpack.inference.external.http.Utils.entityAsMap;
4243
import static org.elasticsearch.xpack.inference.external.http.Utils.getUrl;
4344
import static org.elasticsearch.xpack.inference.external.http.sender.HttpRequestSenderTests.createSender;
44-
import static org.elasticsearch.xpack.inference.results.TextEmbeddingResultsTests.buildExpectationFloat;
4545
import static org.elasticsearch.xpack.inference.services.ServiceComponentsTests.createWithEmptySettings;
4646
import static org.hamcrest.Matchers.equalTo;
4747
import static org.hamcrest.Matchers.hasSize;

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/external/action/voyageai/VoyageAIEmbeddingsActionTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
import java.util.concurrent.TimeUnit;
4646

4747
import static org.elasticsearch.core.Strings.format;
48+
import static org.elasticsearch.xpack.core.inference.results.TextEmbeddingFloatResultsTests.buildExpectationBinary;
49+
import static org.elasticsearch.xpack.core.inference.results.TextEmbeddingFloatResultsTests.buildExpectationByte;
50+
import static org.elasticsearch.xpack.core.inference.results.TextEmbeddingFloatResultsTests.buildExpectationFloat;
4851
import static org.elasticsearch.xpack.inference.Utils.inferenceUtilityPool;
4952
import static org.elasticsearch.xpack.inference.Utils.mockClusterServiceEmpty;
5053
import static org.elasticsearch.xpack.inference.external.action.ActionUtils.constructFailedToSendRequestMessage;
5154
import static org.elasticsearch.xpack.inference.external.http.Utils.entityAsMap;
5255
import static org.elasticsearch.xpack.inference.external.http.Utils.getUrl;
53-
import static org.elasticsearch.xpack.inference.results.TextEmbeddingResultsTests.buildExpectationBinary;
54-
import static org.elasticsearch.xpack.inference.results.TextEmbeddingResultsTests.buildExpectationByte;
55-
import static org.elasticsearch.xpack.inference.results.TextEmbeddingResultsTests.buildExpectationFloat;
5656
import static org.hamcrest.Matchers.equalTo;
5757
import static org.hamcrest.Matchers.hasSize;
5858
import static org.hamcrest.Matchers.is;

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/voyageai/VoyageAIServiceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161

6262
import static org.elasticsearch.common.xcontent.XContentHelper.toXContent;
6363
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertToXContentEquivalent;
64+
import static org.elasticsearch.xpack.core.inference.results.TextEmbeddingFloatResultsTests.buildExpectationFloat;
6465
import static org.elasticsearch.xpack.inference.Utils.getInvalidModel;
6566
import static org.elasticsearch.xpack.inference.Utils.getPersistedConfigMap;
6667
import static org.elasticsearch.xpack.inference.Utils.inferenceUtilityPool;
@@ -69,7 +70,6 @@
6970
import static org.elasticsearch.xpack.inference.chunking.ChunkingSettingsTests.createRandomChunkingSettingsMap;
7071
import static org.elasticsearch.xpack.inference.external.http.Utils.entityAsMap;
7172
import static org.elasticsearch.xpack.inference.external.http.Utils.getUrl;
72-
import static org.elasticsearch.xpack.inference.results.TextEmbeddingResultsTests.buildExpectationFloat;
7373
import static org.elasticsearch.xpack.inference.services.ServiceComponentsTests.createWithEmptySettings;
7474
import static org.elasticsearch.xpack.inference.services.settings.DefaultSecretSettingsTests.getSecretSettingsMap;
7575
import static org.hamcrest.CoreMatchers.is;

0 commit comments

Comments
 (0)