Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Jain <[email protected]>
  • Loading branch information
vibrantvarun committed Dec 26, 2023
1 parent 74d9aef commit ba17401
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Map;
import java.util.ArrayList;
import org.opensearch.neuralsearch.TestUtils;
import static org.opensearch.neuralsearch.TestUtils.NODES_BWC_CLUSTER;
import static org.opensearch.neuralsearch.TestUtils.getModelId;
import static org.opensearch.neuralsearch.TestUtils.TEXT_EMBEDDING_PROCESSOR;
import org.opensearch.neuralsearch.query.NeuralQueryBuilder;

Expand Down Expand Up @@ -97,8 +96,8 @@ protected void createPipelineProcessor(String modelId, String pipelineName, Proc
}

private String getModelId(String pipelineName){
Map<String,Object> pipeline = getIngestionPipeline(PIPELINE_NAME);
Map<String,Object> pipeline = getIngestionPipeline(pipelineName);
assertNotNull(pipeline);
return getModelId(pipeline,TEXT_EMBEDDING_PROCESSOR);
return TestUtils.getModelId(pipeline,TEXT_EMBEDDING_PROCESSOR);
}
}

0 comments on commit ba17401

Please sign in to comment.