账户
提交 Tavily 反馈
提交搜索请求或会话的相关性和实用性反馈。BazaarLink 会接受请求并返回 Tavily 成功格式,但目前只接受反馈,尚未处理反馈内容。至少需要提供 request_id 或 session_id;可使用 X-Session-Id 标识会话。
POST
/v1/feedback验证
Authorization必填string · header
在 Authorization 标头以 Bearer token 传入 API 密钥。
Body
request_idstring
要反馈的搜索请求 ID;提供后反馈将应用于该请求。
maxLength: 200
Example:
8442d8d0-8b74-4fca-a89e-5b1b6dd33295session_idstring
要反馈的会话 ID;未提供 request_id 时,反馈将应用于整个会话。
maxLength: 200
Example:
5874812a-2e9b-43ea-8978-6cc9225b587bagent_scorenumber | string
代理对结果相关性和实用性的整体评分。
string maxLength: 64
Example:
1human_scorenumber | string
如果收集终端用户意见,填写用户评分。
string maxLength: 64
Example:
1extra_scoresarray<object>
自定义评分维度列表;每项需要 label 和 value。
maxItems: 50
label必填string
评分维度的名称。
maxLength: 64
Example:
freshnessvalue必填number | string
数值评分或不超过 64 个字符的短文本标签。
string maxLength: 64
Example:
0.8commentstring
反馈的自由文本说明。
maxLength: 10000
Example:
Results were authoritative but several were old.response_deliveredstring
你使用搜索结果生成的最终答案。
maxLength: 50000
Example:
The results show that ...used_idsstring[]
实际用于答案的结果 ID;与 used_urls 二选一。
maxItems: 100; item maxLength: 200
Example:
["a3f9c2-04"]used_urlsstring[]
实际用于答案的结果 URL;与 used_ids 二选一。
maxItems: 100; item maxLength: 2000
Example:
["https://example.com/article"]used_citationsstring[]
答案中引用的具体来源片段。
maxItems: 100; item maxLength: 2000
Example:
["A cited sentence."]urls_scoresarray<object>
逐条结果反馈;每项必须包含 id 或 url。
maxItems: 100
idstring
搜索响应中的结果 ID;与 url 至少提供一个。
maxLength: 200
Example:
a3f9c2-04urlstring
搜索结果的 URL;没有结果 ID 时使用,与 id 至少提供一个。
maxLength: 2000
Example:
https://example.com/articleagent_scorenumber | string
此结果对代理的评分,可为数字或短文本。
string maxLength: 64
Example:
1scoresarray<object>
此结果的额外标签评分,每项包含 label 和 value。
maxItems: 20
label必填string
评分维度的名称。
maxLength: 64
Example:
freshnessvalue必填number | string
数值评分或不超过 64 个字符的短文本标签。
string maxLength: 64
Example:
0.8commentstring
针对该结果的文字说明。
maxLength: 2000
Example:
Directly answered the question.响应示例