datatypes.feedback
#
- class tonita.datatypes.feedback.FeedbackItem(search_request, corpus_id, listing_id, relevance)#
Contains feedback data for a single search request-listing pair.
- Parameters:
search_request (SearchRequest) – Contains information about the search request to provide feedback on.
corpus_id (str) – The corpus ID for the search.
listing_id (str) – The ID of a listing from the search results produced by the search request.
relevance (float) – A value representing the ground-truth relevance of the listing for the search request. Must be between 0 and 1, inclusive.
- class tonita.datatypes.feedback.SubmitFeedbackResponse(feedback_submission_id)#
Response to a feedback submission.
- Parameters:
feedback_submission_id (str) – An ID of the feedback submission.