Interface FeedbackRating
Properties
idx
idx: string
The idx of the result being rated, copied from a search response.
relevant
relevant: boolean
Whether it was a good match for the query.
Optionalcorrect
correct?: boolean
Whether its content was accurate; left out when that cannot be judged.
Optionalcomment
comment?: string
An optional note on why.
One rating of one result.
idxis copied exactly from a search response and cannot be constructed by hand. Which one you copy decides the reach: an Insight.idx rates that insight, whereas a Memory.idx rates every insight under it.relevantandcorrectare separate questions. A result can answer the query and still be wrong, or be true and unhelpful, and collapsing the two is what makes a rating useless. Leavecorrectout when its accuracy cannot be judged.The batch is gathered by walking memories and then their insights, so a search whose memories are all references yields no ratings at all. An empty batch is refused before anything is sent, so check the length first.
Example