Skip to content

Commit 55fb5f3

Browse files
authored
[ML] Use INTERNAL_INGEST for Inference (#127522)
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 de68cb0 commit 55fb5f3

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
@@ -433,7 +433,15 @@ public void onFailure(Exception exc) {
433433
}
434434
};
435435
inferenceProvider.service()
436-
.chunkedInfer(inferenceProvider.model(), null, inputs, Map.of(), InputType.INGEST, TimeValue.MAX_VALUE, completionListener);
436+
.chunkedInfer(
437+
inferenceProvider.model(),
438+
null,
439+
inputs,
440+
Map.of(),
441+
InputType.INTERNAL_INGEST,
442+
TimeValue.MAX_VALUE,
443+
completionListener
444+
);
437445
}
438446

439447
/**

0 commit comments

Comments
 (0)