Skip to content

Commit 4e0e6e8

Browse files
authored
[DOCS] Fixes indentation in inference processor code snippet (#51252)
1 parent 79eb5aa commit 4e0e6e8

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/reference/ingest/processors/inference.asciidoc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ingested in the pipeline.
1212
[options="header"]
1313
|======
1414
| Name | Required | Default | Description
15-
| `model_id` | yes | - | (String) The ID of the model to load and infer against.
15+
| `model_id` | yes | - | (String) The ID of the model to load and infer against.
1616
| `target_field` | no | `ml.inference.<processor_tag>` | (String) Field added to incoming documents to contain results objects.
1717
| `field_mappings` | yes | - | (Object) Maps the document field names to the known field names of the model.
1818
| `inference_config` | yes | - | (Object) Contains the inference type and its options. There are two types: <<inference-processor-regression-opt,`regression`>> and <<inference-processor-classification-opt,`classification`>>.
@@ -23,13 +23,13 @@ include::common-options.asciidoc[]
2323
[source,js]
2424
--------------------------------------------------
2525
{
26-
"inference": {
27-
"model_id": "flight_delay_regression-1571767128603",
28-
"target_field": "FlightDelayMin_prediction_infer",
29-
"field_mappings": {},
30-
"inference_config": {"regression": {}},
31-
"model_info_field": "ml"
32-
}
26+
"inference": {
27+
"model_id": "flight_delay_regression-1571767128603",
28+
"target_field": "FlightDelayMin_prediction_infer",
29+
"field_mappings": {},
30+
"inference_config": { "regression": {} },
31+
"model_info_field": "ml"
32+
}
3333
}
3434
--------------------------------------------------
3535
// NOTCONSOLE
@@ -73,10 +73,10 @@ Specifies the field to which the top classes are written. Defaults to
7373
--------------------------------------------------
7474
{
7575
"inference_config": {
76-
regression: {
77-
results_field”: “my_regression
76+
"regression": {
77+
"results_field": "my_regression"
7878
}
79-
},
79+
}
8080
}
8181
--------------------------------------------------
8282
// NOTCONSOLE
@@ -90,12 +90,12 @@ object.
9090
--------------------------------------------------
9191
{
9292
"inference_config": {
93-
“classification”: {
94-
“num_top_classes”: 2,
95-
“results_field”: “prediction”,
96-
“top_classes_results_field”: “probabilities”
97-
}
93+
"classification": {
94+
"num_top_classes": 2,
95+
"results_field": "prediction",
96+
"top_classes_results_field": "probabilities"
9897
}
98+
}
9999
}
100100
--------------------------------------------------
101101
// NOTCONSOLE

0 commit comments

Comments
 (0)