Skip to content

Commit b41fb2d

Browse files
authored
[ML] Use INTERNAL_INGEST for Inference (elastic#127522) (elastic#127565)
Inference now inspects InputType and validates it before sending it to the model. INTERNAL_INGEST has special privileges for model validation that will help pass during ingestion.
1 parent 4b13e27 commit b41fb2d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

docs/changelog/127522.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 127522
2+
summary: Use INTERNAL_INGEST for Inference
3+
area: Machine Learning
4+
type: bug
5+
issues:
6+
- 127519

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/action/filter/ShardBulkInferenceActionFilter.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,15 @@ public void onFailure(Exception exc) {
431431
}
432432
};
433433
inferenceProvider.service()
434-
.chunkedInfer(inferenceProvider.model(), null, inputs, Map.of(), InputType.INGEST, TimeValue.MAX_VALUE, completionListener);
434+
.chunkedInfer(
435+
inferenceProvider.model(),
436+
null,
437+
inputs,
438+
Map.of(),
439+
InputType.INTERNAL_INGEST,
440+
TimeValue.MAX_VALUE,
441+
completionListener
442+
);
435443
}
436444

437445
/**

0 commit comments

Comments
 (0)