Skip to content

Commit f51a226

Browse files
committed
fix typo in input/output map within ml-inference processor
Signed-off-by: Brian Flores <iflorbri@amazon.com>
1 parent c5ceb48 commit f51a226

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/tutorials/ml_inference/rerank/ml_Inference_with_Cohere_Rerank_model.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,15 +357,19 @@ PUT /_search/pipeline/cohere_pipeline
357357
{
358358
"ml_inference": {
359359
"model_id": "your_model_id",
360-
"input_map": {
360+
"input_map": [
361+
{
361362
"documents": "fact_description",
362363
"query": "_request.ext.query_context.query_text",
363364
"top_n": "_request.ext.query_context.top_n"
364-
},
365-
"output_map": {
365+
}
366+
],
367+
"output_map": [
368+
{
366369
"relevance_score": "results[*].relevance_score",
367370
"description": "results[*].document.text"
368-
},
371+
}
372+
],
369373
"full_response_path": false,
370374
"ignore_missing": false,
371375
"ignore_failure": false,

0 commit comments

Comments
 (0)