File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
x-pack/plugin/inference/src
main/java/org/elasticsearch/xpack/inference/services/voyageai
test/java/org/elasticsearch/xpack/inference Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change 3636import java .util .Map ;
3737import java .util .concurrent .TimeUnit ;
3838
39+ import static org .elasticsearch .xpack .core .inference .results .TextEmbeddingFloatResultsTests .buildExpectationFloat ;
3940import static org .elasticsearch .xpack .inference .Utils .inferenceUtilityPool ;
4041import static org .elasticsearch .xpack .inference .Utils .mockClusterServiceEmpty ;
4142import static org .elasticsearch .xpack .inference .external .http .Utils .entityAsMap ;
4243import static org .elasticsearch .xpack .inference .external .http .Utils .getUrl ;
4344import static org .elasticsearch .xpack .inference .external .http .sender .HttpRequestSenderTests .createSender ;
44- import static org .elasticsearch .xpack .inference .results .TextEmbeddingResultsTests .buildExpectationFloat ;
4545import static org .elasticsearch .xpack .inference .services .ServiceComponentsTests .createWithEmptySettings ;
4646import static org .hamcrest .Matchers .equalTo ;
4747import static org .hamcrest .Matchers .hasSize ;
Original file line number Diff line number Diff line change 4545import java .util .concurrent .TimeUnit ;
4646
4747import 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 ;
4851import static org .elasticsearch .xpack .inference .Utils .inferenceUtilityPool ;
4952import static org .elasticsearch .xpack .inference .Utils .mockClusterServiceEmpty ;
5053import static org .elasticsearch .xpack .inference .external .action .ActionUtils .constructFailedToSendRequestMessage ;
5154import static org .elasticsearch .xpack .inference .external .http .Utils .entityAsMap ;
5255import 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 ;
5656import static org .hamcrest .Matchers .equalTo ;
5757import static org .hamcrest .Matchers .hasSize ;
5858import static org .hamcrest .Matchers .is ;
Original file line number Diff line number Diff line change 6161
6262import static org .elasticsearch .common .xcontent .XContentHelper .toXContent ;
6363import static org .elasticsearch .test .hamcrest .ElasticsearchAssertions .assertToXContentEquivalent ;
64+ import static org .elasticsearch .xpack .core .inference .results .TextEmbeddingFloatResultsTests .buildExpectationFloat ;
6465import static org .elasticsearch .xpack .inference .Utils .getInvalidModel ;
6566import static org .elasticsearch .xpack .inference .Utils .getPersistedConfigMap ;
6667import static org .elasticsearch .xpack .inference .Utils .inferenceUtilityPool ;
6970import static org .elasticsearch .xpack .inference .chunking .ChunkingSettingsTests .createRandomChunkingSettingsMap ;
7071import static org .elasticsearch .xpack .inference .external .http .Utils .entityAsMap ;
7172import static org .elasticsearch .xpack .inference .external .http .Utils .getUrl ;
72- import static org .elasticsearch .xpack .inference .results .TextEmbeddingResultsTests .buildExpectationFloat ;
7373import static org .elasticsearch .xpack .inference .services .ServiceComponentsTests .createWithEmptySettings ;
7474import static org .elasticsearch .xpack .inference .services .settings .DefaultSecretSettingsTests .getSecretSettingsMap ;
7575import static org .hamcrest .CoreMatchers .is ;
You can’t perform that action at this time.
0 commit comments