Class InferenceService
java.lang.Object
org.elasticsearch.xpack.esql.inference.InferenceService
-
Constructor Summary
ConstructorsConstructorDescriptionInferenceService(Client client, ClusterService clusterService) Creates a new inference service with the given client. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteInference(InferenceAction.Request request, ActionListener<InferenceAction.Response> listener) Executes an inference request.inferenceResolver(EsqlFunctionRegistry functionRegistry) Creates an inference resolver for resolving inference IDs in logical plans.Returns the settings for ES|QL inference features.
-
Constructor Details
-
InferenceService
Creates a new inference service with the given client.- Parameters:
client- the Elasticsearch client for inference operationsclusterService- used to read and update inference settings
-
-
Method Details
-
inferenceSettings
Returns the settings for ES|QL inference features.- Returns:
- the inference settings
-
inferenceResolver
Creates an inference resolver for resolving inference IDs in logical plans.- Parameters:
functionRegistry- the function registry to resolve functions- Returns:
- a new inference resolver instance
-
executeInference
public void executeInference(InferenceAction.Request request, ActionListener<InferenceAction.Response> listener) Executes an inference request.- Parameters:
request- the inference request to executelistener- the listener to notify upon completion
-
threadPool
-
threadContext
-