Slide 7
Slide 7 text
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.
11
例: Reranker と連携したリランキング
POST my-test-data/_search?search_pipeline=rerank_pipeline_bedrock
{
"query": {
"match": {
"passage_text": "What is the capital city of America?"
}
},
"ext": {
"rerank": {
"query_context": {
"query_text_path": "query.match.passage_text.query"
}
}
},
"highlight": {
"pre_tags": [""],
"post_tags": [""],
"fields": {"passage_text": {}}
},
"_source": false,
"fields": ["passage_text"]
}
https://opensearch.org/docs/latest/ml-commons-plugin/tutorials/reranking-bedrock/