帳戶
提交 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.回應範例