Score text
curl --request POST \
--url https://flow.seekr.com/v1/inference/score \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "BAAI/bge-reranker-v2-m3",
"queries": "What is the capital of France?",
"documents": [
"Paris is the capital of France.",
"The Eiffel Tower is in Paris."
]
}
'import requests
url = "https://flow.seekr.com/v1/inference/score"
payload = {
"model": "BAAI/bge-reranker-v2-m3",
"queries": "What is the capital of France?",
"documents": ["Paris is the capital of France.", "The Eiffel Tower is in Paris."]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'BAAI/bge-reranker-v2-m3',
queries: 'What is the capital of France?',
documents: ['Paris is the capital of France.', 'The Eiffel Tower is in Paris.']
})
};
fetch('https://flow.seekr.com/v1/inference/score', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://flow.seekr.com/v1/inference/score",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'BAAI/bge-reranker-v2-m3',
'queries' => 'What is the capital of France?',
'documents' => [
'Paris is the capital of France.',
'The Eiffel Tower is in Paris.'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://flow.seekr.com/v1/inference/score"
payload := strings.NewReader("{\n \"model\": \"BAAI/bge-reranker-v2-m3\",\n \"queries\": \"What is the capital of France?\",\n \"documents\": [\n \"Paris is the capital of France.\",\n \"The Eiffel Tower is in Paris.\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://flow.seekr.com/v1/inference/score")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"BAAI/bge-reranker-v2-m3\",\n \"queries\": \"What is the capital of France?\",\n \"documents\": [\n \"Paris is the capital of France.\",\n \"The Eiffel Tower is in Paris.\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow.seekr.com/v1/inference/score")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"BAAI/bge-reranker-v2-m3\",\n \"queries\": \"What is the capital of France?\",\n \"documents\": [\n \"Paris is the capital of France.\",\n \"The Eiffel Tower is in Paris.\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created": 123,
"model": "<string>",
"data": [
{
"index": 123,
"score": 123,
"object": "score"
}
],
"usage": {
"prompt_tokens": 0,
"total_tokens": 0,
"completion_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 123,
"created_cache_tokens": 123,
"multimodal_tokens": {}
}
},
"object": "list"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}Score text
Score a query-document pair for relevance.
POST
/
v1
/
inference
/
score
Score text
curl --request POST \
--url https://flow.seekr.com/v1/inference/score \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "BAAI/bge-reranker-v2-m3",
"queries": "What is the capital of France?",
"documents": [
"Paris is the capital of France.",
"The Eiffel Tower is in Paris."
]
}
'import requests
url = "https://flow.seekr.com/v1/inference/score"
payload = {
"model": "BAAI/bge-reranker-v2-m3",
"queries": "What is the capital of France?",
"documents": ["Paris is the capital of France.", "The Eiffel Tower is in Paris."]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'BAAI/bge-reranker-v2-m3',
queries: 'What is the capital of France?',
documents: ['Paris is the capital of France.', 'The Eiffel Tower is in Paris.']
})
};
fetch('https://flow.seekr.com/v1/inference/score', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://flow.seekr.com/v1/inference/score",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'BAAI/bge-reranker-v2-m3',
'queries' => 'What is the capital of France?',
'documents' => [
'Paris is the capital of France.',
'The Eiffel Tower is in Paris.'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://flow.seekr.com/v1/inference/score"
payload := strings.NewReader("{\n \"model\": \"BAAI/bge-reranker-v2-m3\",\n \"queries\": \"What is the capital of France?\",\n \"documents\": [\n \"Paris is the capital of France.\",\n \"The Eiffel Tower is in Paris.\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://flow.seekr.com/v1/inference/score")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"BAAI/bge-reranker-v2-m3\",\n \"queries\": \"What is the capital of France?\",\n \"documents\": [\n \"Paris is the capital of France.\",\n \"The Eiffel Tower is in Paris.\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow.seekr.com/v1/inference/score")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"BAAI/bge-reranker-v2-m3\",\n \"queries\": \"What is the capital of France?\",\n \"documents\": [\n \"Paris is the capital of France.\",\n \"The Eiffel Tower is in Paris.\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created": 123,
"model": "<string>",
"data": [
{
"index": 123,
"score": 123,
"object": "score"
}
],
"usage": {
"prompt_tokens": 0,
"total_tokens": 0,
"completion_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 123,
"created_cache_tokens": 123,
"multimodal_tokens": {}
}
},
"object": "list"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": 123,
"param": "<string>"
}
}Authorizations
Body
application/json
- ScoreQueriesDocumentsRequest
- ScoreQueriesItemsRequest
- ScoreDataRequest
- ScoreTextRequest
Response
Successful response.
Last modified on July 31, 2026
⌘I