-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Feature]: 支持第三方rerank模型 #874
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
当前rerank只支持火山引擎的模型?希望支持第三方模型
Proposed Solution
希望支持第三方模型,例如siliconflow里的rerank模型
Alternatives Considered
No response
Feature Area
Model Integration
Use Case
接入第三方rerank模型
Example API (Optional)
import requests
url = "https://api.siliconflow.cn/v1/rerank"
payload = {
"model": "BAAI/bge-reranker-v2-m3",
"query": "Apple",
"documents": ["apple", "banana", "fruit", "vegetable"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Additional Context
No response
Contribution
- I am willing to contribute to implementing this feature
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done