File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,20 @@ The API returns the following response:
7575
7676[source,console-result]
7777------------------------------------------------------------ 
78- { 
79-   "inference_id": "my-elser-model", 
80-   "task_type": "sparse_embedding", 
81-   "service": "elser", 
82-   "service_settings": { 
83-     "num_allocations": 1, 
84-     "num_threads": 1 
85-   }, 
86-   "task_settings": {} 
87- } 
78+     { 
79+       "inference_id": "my-elser-model", 
80+       "task_type": "sparse_embedding", 
81+       "service": "elasticsearch", 
82+       "service_settings": { 
83+         "num_allocations": 1, 
84+         "num_threads": 1, 
85+         "model_id": ".elser_model_2" 
86+       }, 
87+       "chunking_settings": { 
88+         "strategy": "sentence", 
89+         "max_chunk_size": 250, 
90+         "sentence_overlap": 1 
91+       } 
92+     } 
8893------------------------------------------------------------ 
8994// NOTCONSOLE
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments