Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused MLPredict Transport action from src. #94

Merged
merged 1 commit into from
Jan 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import java.util.Map;
import java.util.function.Supplier;

import org.opensearch.action.ActionRequest;
import org.opensearch.action.ActionResponse;
import org.opensearch.client.Client;
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
import org.opensearch.cluster.service.ClusterService;
Expand All @@ -26,8 +24,6 @@
import org.opensearch.neuralsearch.processor.TextEmbeddingProcessor;
import org.opensearch.neuralsearch.processor.factory.TextEmbeddingProcessorFactory;
import org.opensearch.neuralsearch.query.NeuralQueryBuilder;
import org.opensearch.neuralsearch.transport.MLPredictAction;
import org.opensearch.neuralsearch.transport.MLPredictTransportAction;
import org.opensearch.plugins.ActionPlugin;
import org.opensearch.plugins.ExtensiblePlugin;
import org.opensearch.plugins.IngestPlugin;
Expand Down Expand Up @@ -63,16 +59,6 @@ public Collection<Object> createComponents(
return List.of(clientAccessor);
}

/**
* Registering the Action Handlers
*
* @return A {@link List} of {@link ActionHandler}
*/
@Override
public List<ActionHandler<? extends ActionRequest, ? extends ActionResponse>> getActions() {
return List.of(new ActionHandler<>(MLPredictAction.INSTANCE, MLPredictTransportAction.class));
}

public List<QuerySpec<?>> getQueries() {
return Collections.singletonList(
new QuerySpec<>(NeuralQueryBuilder.NAME, NeuralQueryBuilder::new, NeuralQueryBuilder::fromXContent)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

package org.opensearch.neuralsearch.constants;

import java.util.Arrays;
import java.util.List;

import lombok.AccessLevel;
Expand All @@ -16,6 +15,5 @@ public class TestCommonConstants {
public static final String MODEL_ID = "modeId";
public static final List<String> TARGET_RESPONSE_FILTERS = List.of("sentence_embedding");
public static final Float[] PREDICT_VECTOR_ARRAY = new Float[] { 2.0f, 3.0f };
public static final List<List<Float>> PREDICTIONS_LIST = List.of(Arrays.asList(PREDICT_VECTOR_ARRAY));
public static final List<String> SENTENCES_LIST = List.of("TEXT");
}

This file was deleted.

This file was deleted.

Loading