Search reranker
Write the query, paste passages or results, and it ranks them most relevant first.
For developers: use it from the API
The same tool from your app. Send the fields and a list of items; you get the same verdicts back.
curl -s https://7aasm.com/v1/tools/rerank \
-H "Authorization: Bearer $HASM_KEY" \
-H "Content-Type: application/json" \
-d '{"fields": {"query": "How do I get a refund?"}, "items": ["Opening hours are 9am to 5pm.", "To request a refund, open the order in your account and tap “Request refund” within 14 days."]}'Or send the same questions yourself to POST /v1/systemone:
{
"state": "سؤال المستخدم: How do I get a refund?\n\nالمقطع:\n…",
"questions": {
"rel": {
"type": "score",
"instructions": "ما مدى صلة المقطع بالسؤال؟",
"criteria": [
"غير مرتبط",
"مرتبط قليلاً",
"مرتبط",
"يجيب عن السؤال مباشرة"
]
}
}
}