Skip to content

Rescore

kendraranking_rescore R Documentation

Rescores or re-ranks search results from a search service such as OpenSearch (self managed)

Description

Rescores or re-ranks search results from a search service such as OpenSearch (self managed). You use the semantic search capabilities of Amazon Kendra Intelligent Ranking to improve the search service's results.

Usage

kendraranking_rescore(RescoreExecutionPlanId, SearchQuery, Documents)

Arguments

RescoreExecutionPlanId

[required] The identifier of the rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the rescore API.

SearchQuery

[required] The input query from the search service.

Documents

[required] The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.

Value

A list with the following syntax:

list(
  RescoreId = "string",
  ResultItems = list(
    list(
      DocumentId = "string",
      Score = 123.0
    )
  )
)

Request syntax

svc$rescore(
  RescoreExecutionPlanId = "string",
  SearchQuery = "string",
  Documents = list(
    list(
      Id = "string",
      GroupId = "string",
      Title = "string",
      Body = "string",
      TokenizedTitle = list(
        "string"
      ),
      TokenizedBody = list(
        "string"
      ),
      OriginalScore = 123.0
    )
  )
)