import requests
url = "https://api.qhaigc.net/v1/rerank"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer sk-your-api-key-here"
}
data = {
"model": "bge-reranker-v2-m3",
"query": "Organic skincare products for sensitive skin",
"top_n": 3,
"documents": [
"Organic skincare for sensitive skin with aloe vera and chamomile...",
"New makeup trends focus on bold colors and innovative techniques...",
"Bio-Hautpflege für empfindliche Haut mit Aloe Vera und Kamille..."
]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())