Overview
The evaluation API allows you to score and evaluate your queries and highlights. Providing scores for results improves the quality of the results over time and makes them more relevant to your users.Usage
Every query returned through the search method contains aquery_id
field. Similarly, each highlight returned contains a highlight_id
. You can use these IDs to score and evaluate the results:
score
field is the average score of the query based on all evaluations sent. The comments
field is a list of comments given for a particular highlight using the methods described below.
You can also use the query_id
to retrieve an existing query at a later point in time.
Scoring queries
You can score a queries with the Evaluation API:Scoring highlights
Similarly,you can score individual highlights with the Evaluation API. This also lets you provide a comment for the evaluation.comment
field is a free-form text field that you can use to provide additional context for the evaluation. If you only want to provide a comment, you may omit the score
field.