Skip to content

Commit

Permalink
fix for java 8
Browse files Browse the repository at this point in the history
Signed-off-by: miguel-vila <[email protected]>
  • Loading branch information
miguel-vila committed Jun 3, 2024
1 parent 752df7b commit 14b6074
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@

package org.opensearch.client.opensearch.ingest;

import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import org.opensearch.client.opensearch.model.ModelTestCase;

public class TextEmbeddingProcessorTest extends ModelTestCase {

private static final Map<String, String> baseFieldMap = Map.of("input_field", "vector_field");
private static final Map<String, String> baseFieldMap = new HashMap<>();
static {
baseFieldMap.put("input_field", "vector_field");
}

private static TextEmbeddingProcessor.Builder baseTextEmbeddingProcessor() {
return new TextEmbeddingProcessor.Builder().modelId("modelId").fieldMap(baseFieldMap).tag("some-tag");
Expand Down

0 comments on commit 14b6074

Please sign in to comment.