Skip to content

Commit

Permalink
[DOCS] Clarifies that inference input must be single string.
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve committed Oct 25, 2023
1 parent 5bbfe66 commit 25a3249
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions docs/reference/ingest/processors/inference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ ingested in the pipeline.
include::common-options.asciidoc[]
|======

IMPORTANT: You cannot use the `input_output` field with the `target_field` and
[IMPORTANT]
==================================================
* You cannot use the `input_output` field with the `target_field` and
`field_map` fields. For NLP models, use the `input_output` option. For
{dfanalytics} models, use the `target_field` and `field_map` option.

* The {infer} input fields must be single strings, not arrays of strings.
==================================================

[discrete]
[[inference-input-output-example]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ Controls the amount of time to wait for {infer} results. Defaults to 10 seconds.
(Required, array)
An array of objects to pass to the model for inference. The objects should
contain the fields matching your configured trained model input. Typically for
NLP models, the field name is `text_field`.
NLP models, the field name is `text_field`. The {infer} input fields must be
singe strings not arrays of strings.

//Begin inference_config
`inference_config`::
Expand Down

0 comments on commit 25a3249

Please sign in to comment.