Submit feedback
Score the quality of a prior call to help improve future results.
/tavily/feedback● SupportedRequest body
request_idstring可选The search request to give feedback on, as returned in the `request_id` field of the search response. When provided, the feedback applies to this request.
session_idstring可选The session to give feedback on — the value you sent in the `X-Session-Id` header. When `request_id` is omitted, the feedback applies to the whole session. Optional if `request_id` is provided.
agent_scorenumber | string可选Overall score for how relevant and useful the results were for your task.
human_scorenumber | string可选Feedback from your end user, if you collect it.
extra_scoresarray可选Additional labeled scores for the dimensions you care about.
▸ 展开子字段(2)
labelstring必填Name of the dimension being scored.
valuenumber | string必填A numeric score, or a short string label (max 64 characters).
commentstring可选Free-text explanation of the feedback.
response_deliveredstring可选The final answer you produced using the results.
used_idsarray可选IDs of the results you actually used in your answer. Alternative to `used_urls`.
used_urlsarray可选URLs of the results you actually used in your answer. Alternative to `used_ids`.
used_citationsarray可选The specific content snippets you quoted from the results.
▸ 更多参数(1)
urls_scoresarray可选Per-result feedback. Identify each result by `id` or `url`.
▸ 展开子字段(5)
idstring可选The `id` of the result, as returned in the search response.
urlstring可选The URL of the result. Use instead of `id` when you don't have the result ID.
agent_scorenumber | string可选Score for this specific result.
scoresarray可选Additional labeled scores for this result.
commentstring可选Free-text explanation of the feedback on this result.
Returns
200
Forwarded to Tavily as is and not billed (Tavily's own pricing does not charge for feedback).
Errors follow the Tavily format — see error codes
Response
HTTP 200
Feedback accepted
application/json
| Name | Type | Description |
|---|---|---|
| success | boolean | Whether the feedback was accepted. |
| feedback_id | string | Unique identifier of this feedback submission. |
| response_time | number | Response time of this feedback request in seconds. |