Views
No views yet
| Model | Avg. Score | Classification | Clustering | PairClass. | Reranking | Retrieval | STS | Summarization |
|---|---|---|---|---|---|---|---|---|
| Hakim | 73.81 | 84.56 | 70.46 | 89.75 | 69.46 | 40.43 | 76.62 | 85.41 |
| Hakim-small | 70.45 | 80.19 | 66.31 | 87.41 | 67.30 | 38.05 | 75.53 | 78.40 |
| Hakim-unsup | 64.56 | 60.65 | 58.89 | 86.41 | 67.56 | 37.71 | 79.36 | 61.34 |
| BGE-m3 | 65.29 | 58.75 | 57.73 | 85.21 | 74.56 | 43.38 | 76.35 | 61.07 |
| Jina-embeddings-v3 | 64.53 | 59.93 | 59.15 | 83.71 | 61.26 | 43.51 | 78.65 | 65.50 |
| multilingual-e5-large | 64.40 | 59.86 | 57.19 | 84.42 | 74.34 | 42.98 | 75.38 | 56.61 |
| GTE-multilingual-base | 63.64 | 56.07 | 57.28 | 84.58 | 69.72 | 41.22 | 75.75 | 60.88 |
| multilingual-e5-base | 62.93 | 57.62 | 56.52 | 84.04 | 72.07 | 41.20 | 74.45 | 54.58 |
| Tooka-SBERT | 60.65 | 59.40 | 56.45 | 87.04 | 58.29 | 27.86 | 76.42 | 59.06 |
curlcurl command in your terminal, use the following code. Be sure to replace your_api_key with your actual API key.Note: For quick testing, you can usemcinextas your API key. This will allow you to access the API with some limitations.
1curl -X POST 'http://mcinext.ai/api/embedding-model' \
2-H "Content-Type: application/json" \
3-H "Accept: application/json" \
4-H "Authorization: Bearer your_api_key" \
5-d '{
6 "model": "Hakim",
7 "input": [
8 "Text of the first document.",
9 "Text of the second document.",
10 "And so on..."
11 ],
12 "prompt_type": "sentiment"
13}'1import requests
2import json
3
4# --- Configuration ---
5API_KEY = "your_api_key" # Replace with your API key or "mcinext" for testing
6API_URL = "http://mcinext.ai/api/embedding-model"
7
8# --- Request Details ---
9headers = {
10 "Content-Type": "application/json",
11 "Accept": "application/json",
12 "Authorization": f"Bearer {API_KEY}"
13}
14
15data = {
16 "model": "Hakim",
17 "input": [
18 "Text of the first document.",
19 "Text of the second document.",
20 "And so on..."
21 ],
22 "prompt_type": "classification" # Model task type (e.g., classification or sentiment)
23}
24
25# --- Send Request ---
26try:
27 response = requests.post(API_URL, headers=headers, data=json.dumps(data))
28 response.raise_for_status() # Check if the request was successful
29
30 print("Request successful!")
31 print("Response JSON:")
32 print(response.json())
33
34except requests.exceptions.HTTPError as http_err:
35 print(f"HTTP error occurred: {http_err}")
36 print(f"Response content: {response.text}")
37except Exception as err:
38 print(f"An error occurred: {err}")| prompt_type | Use Case | Preprocessed Example (in Farsi) |
|---|---|---|
| sentiment | Sentiment analysis of text. | مسئله : دسته بندی , تحلیل احساس رضایت متن | متن : [متن شما] |
| classification | General and topical text classification. | مسئله : دسته بندی , دسته بندی موضوعی متن | متن : [متن شما] |
| clustering | Text clustering and topical classification. | مسئله : دسته بندی , دسته بندی موضوعی متن | متن : [متن شما] |
| sts.sent1 | Semantic Textual Similarity (STS) for the first sentence. | مسئله : تشخیص ارتباط , آیا متن دوم شباهت معنایی با متن اول دارد ؟ | متن اول : [متن شما] |
| sts.sent2 | Semantic Textual Similarity (STS) for the second sentence. | مسئله : تشخیص ارتباط , آیا متن دوم شباهت معنایی با متن اول دارد ؟ | متن دوم : [متن شما] |
| retrieval.query | Information Retrieval (query text). | مسئله : تشخیص ارتباط , آیا متن دوم به متن اول مرتبط است ؟ | متن اول : [متن شما] |
| retrieval.passage | Information Retrieval (document text). | مسئله : تشخیص ارتباط , آیا متن دوم به متن اول مرتبط است ؟ | متن دوم : [متن شما] |
| cross | Classification with two inputs, determining semantic relationship. | مسئله : دسته بندی با دو ورودی , نوع ارتباط معنایی متن دوم با متن اول چگونه است ؟ | متن اول : [متن ۱] | متن دوم : [متن ۲] |
sts.sent1):1{
2 "model": "Hakim",
3 "input": [
4 "This is the first sentence.",
5 "This is another first sentence."
6 ],
7 "prompt_type": "sts.sent1"
8}1{
2 "model": "Hakim",
3 "input": [
4 "This is the second sentence.",
5 "This is another second sentence."
6 ],
7 "prompt_type": "sts.sent2"
8}1{
2 "model": "Hakim",
3 "input": [
4 "What is the capital of France?",
5 "What is the population of France?"
6 ],
7 "prompt_type": "retrieval.query"
8}1{
2 "model": "Hakim",
3 "input": [
4 "Paris is the capital of France.",
5 "Paris has a population of over 2 million."
6 ],
7 "prompt_type": "retrieval.passage"
8}1{
2 "model": "Hakim",
3 "input": [
4 "[text1]: This is the first text, [text2]: This is the second text",
5 "[text1]: A new sentence, [text2]: Another different sentence"
6 ],
7 "prompt_type": "cross"
8}1@article{sarmadi2025hakim,
2 title={Hakim: Farsi Text Embedding Model},
3 author={Sarmadi, Mehran and Alikhani, Morteza and Zinvandi, Erfan and Pourbahman, Zahra},
4 journal={arXiv preprint arXiv:2505.08435},
5 year={2025}
6}