- 
                Notifications
    
You must be signed in to change notification settings  - Fork 25.6k
 
[ML] Adding configurable inference service #127939
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
          
     Merged
      
      
            jonathan-buttner
  merged 21 commits into
  elastic:main
from
jonathan-buttner:custom-inference-service-jon
  
      
      
   
  May 29, 2025 
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            21 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      14a5383
              
                Inference changes
              
              
                jonathan-buttner eba5fce
              
                Custom service fixes
              
              
                jonathan-buttner 9af98be
              
                Update docs/changelog/127939.yaml
              
              
                jonathan-buttner cb09e30
              
                Cleaning up from failed merge
              
              
                jonathan-buttner c8642cd
              
                Merge branch 'custom-inference-service-jon' of github.com:jonathan-bu…
              
              
                jonathan-buttner e7c62d8
              
                Fixing changelog
              
              
                jonathan-buttner 6bb2a95
              
                [CI] Auto commit changes from spotless
              
              
                 67329e2
              
                Fixing transport version
              
              
                jonathan-buttner dd14970
              
                Merge branch 'custom-inference-service-jon' of github.com:jonathan-bu…
              
              
                jonathan-buttner 6be22b5
              
                Fixing test
              
              
                jonathan-buttner da1c71f
              
                Fixing transport version
              
              
                jonathan-buttner 84c16ce
              
                Adding feature flag
              
              
                jonathan-buttner 7eb72ff
              
                Merge branch 'main' of github.com:elastic/elasticsearch into custom-i…
              
              
                jonathan-buttner 280d4dd
              
                [CI] Auto commit changes from spotless
              
              
                 d1137b6
              
                Fixing test issue
              
              
                jonathan-buttner e955bf4
              
                Merge branch 'main' of github.com:elastic/elasticsearch into custom-i…
              
              
                jonathan-buttner 27fdfa8
              
                Merge branch 'custom-inference-service-jon' of github.com:jonathan-bu…
              
              
                jonathan-buttner 7d2c112
              
                [CI] Auto commit changes from spotless
              
              
                 63fdaed
              
                Fixing the expected values
              
              
                jonathan-buttner 95f05d2
              
                Merge branch 'main' of github.com:elastic/elasticsearch into custom-i…
              
              
                jonathan-buttner e085040
              
                Merge branch 'custom-inference-service-jon' of github.com:jonathan-bu…
              
              
                jonathan-buttner File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 127939 | ||
| summary: Add Custom inference service | ||
| area: Machine Learning | ||
| type: enhancement | ||
| issues: [] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
          
            21 changes: 21 additions & 0 deletions
          
          21 
        
  ...n/inference/src/main/java/org/elasticsearch/xpack/inference/CustomServiceFeatureFlag.java
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
| 
     | 
||
| package org.elasticsearch.xpack.inference; | ||
| 
     | 
||
| import org.elasticsearch.common.util.FeatureFlag; | ||
| 
     | 
||
| public class CustomServiceFeatureFlag { | ||
| /** | ||
| * {@link org.elasticsearch.xpack.inference.services.custom.CustomService} feature flag. When the feature is complete, | ||
| * this flag will be removed. | ||
| * Enable feature via JVM option: `-Des.inference_custom_service_feature_flag_enabled=true`. | ||
| */ | ||
| public static final FeatureFlag CUSTOM_SERVICE_FEATURE_FLAG = new FeatureFlag("inference_custom_service"); | ||
| 
     | 
||
| private CustomServiceFeatureFlag() {} | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.