重要提示 cohere 的 Rerank 模型接口和 Jina的Rerank模型接口格式 是一样的。
$UIUIAPI_API_KEY 是您的 API 密钥。X-Client-Namemodelquerydocumentstop_nmax_tokens_per_docresultsindex: 整数,对应于原始文档列表中文档的索引relevance_score: 浮点数,相关性分数范围为[0, 1]。接近1的分数表示与查询高度相关,接近0的分数表示相关性较低idmetaapi_version: 对象,包含API版本信息version: 字符串,API版本号is_deprecated: 布尔值,是否已弃用is_experimental: 布尔值,是否为实验性功能billed_units: 对象,包含计费信息search_units: 浮点数,计费的搜索单位数tokens: 对象,包含令牌使用统计input_tokens: 浮点数,作为模型输入的令牌数output_tokens: 浮点数,模型产生的令牌数warnings400 Bad Request: 请求格式或参数错误401 Unauthorized: 未提供有效的API密钥403 Forbidden: 没有权限访问此资源404 Not Found: 请求的资源不存在422 Unprocessable Entity: 请求格式正确但包含语义错误429 Too Many Requests: 请求频率超过限制500 Internal Server Error: 服务器内部错误503 Service Unavailable: 服务暂时不可用