Class InferenceService

java.lang.Object
org.elasticsearch.xpack.esql.inference.InferenceService

public class InferenceService extends Object
  • Constructor Details

    • InferenceService

      public InferenceService(Client client, ClusterService clusterService)
      Creates a new inference service with the given client.
      Parameters:
      client - the Elasticsearch client for inference operations
      clusterService - used to read and update inference settings
  • Method Details

    • inferenceSettings

      public InferenceSettings inferenceSettings()
      Returns the settings for ES|QL inference features.
      Returns:
      the inference settings
    • inferenceResolver

      public InferenceResolver inferenceResolver(EsqlFunctionRegistry functionRegistry)
      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
    • bulkInferenceRunner

      public BulkInferenceRunner bulkInferenceRunner()
    • bulkInferenceRunner

      public BulkInferenceRunner bulkInferenceRunner(BulkInferenceRunnerConfig bulkInferenceRunnerConfig)