Skip to content

Enables you to provide feedback to Amazon Kendra to improve the performance of your index

Description

Enables you to provide feedback to Amazon Kendra to improve the performance of your index.

submit_feedback is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Usage

kendra_submit_feedback(IndexId, QueryId, ClickFeedbackItems,
  RelevanceFeedbackItems)

Arguments

  • IndexId

    [required] The identifier of the index that was queried.

  • QueryId

    [required] The identifier of the specific query for which you are submitting feedback. The query ID is returned in the response to the query API.

  • ClickFeedbackItems

    Tells Amazon Kendra that a particular search result link was chosen by the user.

  • RelevanceFeedbackItems

    Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the search.

Value

An empty list.

Request syntax

svc$submit_feedback(
  IndexId = "string",
  QueryId = "string",
  ClickFeedbackItems = list(
    list(
      ResultId = "string",
      ClickTime = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  RelevanceFeedbackItems = list(
    list(
      ResultId = "string",
      RelevanceValue = "RELEVANT"|"NOT_RELEVANT"
    )
  )
)