You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update inference API examples for reranker model (#1541)
* docs: update inference API examples for reranker model
- Update code examples to show correct input format for reranker
- Add examples for text/text_pair format required by mxbai-rerank-base-v1
- Include multiple input pairs to demonstrate batch processing
- Update curl, Python and JavaScript examples consistently
* undo hf lib reference
{"text": "What is Paris?", "text_pair": "Paris is the capital of France"},
66
+
{"text": "What is Paris?", "text_pair": "London is the capital of England"}
67
+
]
62
68
})
63
69
```
64
70
65
71
To use the Python client, see `huggingface_hub`'s [package reference](https://huggingface.co/docs/huggingface_hub/package_reference/inference_client#huggingface_hub.InferenceClient.text_classification).
0 commit comments