curl --request POST \
--url https://api.platform.infino.ws/v1/vector_search/{database} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"field_name": "<string>",
"k": 1,
"query": [
123
],
"table_name": "<string>",
"filter": {
"field_name": "<string>",
"query": "<string>"
},
"projection": [
"<string>"
],
"rerank": {}
}
'import requests
url = "https://api.platform.infino.ws/v1/vector_search/{database}"
payload = {
"field_name": "<string>",
"k": 1,
"query": [123],
"table_name": "<string>",
"filter": {
"field_name": "<string>",
"query": "<string>"
},
"projection": ["<string>"],
"rerank": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
field_name: '<string>',
k: 1,
query: [123],
table_name: '<string>',
filter: {field_name: '<string>', query: '<string>'},
projection: ['<string>'],
rerank: {}
})
};
fetch('https://api.platform.infino.ws/v1/vector_search/{database}', 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://api.platform.infino.ws/v1/vector_search/{database}",
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([
'field_name' => '<string>',
'k' => 1,
'query' => [
123
],
'table_name' => '<string>',
'filter' => [
'field_name' => '<string>',
'query' => '<string>'
],
'projection' => [
'<string>'
],
'rerank' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.platform.infino.ws/v1/vector_search/{database}"
payload := strings.NewReader("{\n \"field_name\": \"<string>\",\n \"k\": 1,\n \"query\": [\n 123\n ],\n \"table_name\": \"<string>\",\n \"filter\": {\n \"field_name\": \"<string>\",\n \"query\": \"<string>\"\n },\n \"projection\": [\n \"<string>\"\n ],\n \"rerank\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.platform.infino.ws/v1/vector_search/{database}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"field_name\": \"<string>\",\n \"k\": 1,\n \"query\": [\n 123\n ],\n \"table_name\": \"<string>\",\n \"filter\": {\n \"field_name\": \"<string>\",\n \"query\": \"<string>\"\n },\n \"projection\": [\n \"<string>\"\n ],\n \"rerank\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platform.infino.ws/v1/vector_search/{database}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field_name\": \"<string>\",\n \"k\": 1,\n \"query\": [\n 123\n ],\n \"table_name\": \"<string>\",\n \"filter\": {\n \"field_name\": \"<string>\",\n \"query\": \"<string>\"\n },\n \"projection\": [\n \"<string>\"\n ],\n \"rerank\": {}\n}"
response = http.request(request)
puts response.read_bodyVector search
Vector (kNN) search over a vector column, with an optional full-text pre-filter.
curl --request POST \
--url https://api.platform.infino.ws/v1/vector_search/{database} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"field_name": "<string>",
"k": 1,
"query": [
123
],
"table_name": "<string>",
"filter": {
"field_name": "<string>",
"query": "<string>"
},
"projection": [
"<string>"
],
"rerank": {}
}
'import requests
url = "https://api.platform.infino.ws/v1/vector_search/{database}"
payload = {
"field_name": "<string>",
"k": 1,
"query": [123],
"table_name": "<string>",
"filter": {
"field_name": "<string>",
"query": "<string>"
},
"projection": ["<string>"],
"rerank": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
field_name: '<string>',
k: 1,
query: [123],
table_name: '<string>',
filter: {field_name: '<string>', query: '<string>'},
projection: ['<string>'],
rerank: {}
})
};
fetch('https://api.platform.infino.ws/v1/vector_search/{database}', 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://api.platform.infino.ws/v1/vector_search/{database}",
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([
'field_name' => '<string>',
'k' => 1,
'query' => [
123
],
'table_name' => '<string>',
'filter' => [
'field_name' => '<string>',
'query' => '<string>'
],
'projection' => [
'<string>'
],
'rerank' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.platform.infino.ws/v1/vector_search/{database}"
payload := strings.NewReader("{\n \"field_name\": \"<string>\",\n \"k\": 1,\n \"query\": [\n 123\n ],\n \"table_name\": \"<string>\",\n \"filter\": {\n \"field_name\": \"<string>\",\n \"query\": \"<string>\"\n },\n \"projection\": [\n \"<string>\"\n ],\n \"rerank\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.platform.infino.ws/v1/vector_search/{database}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"field_name\": \"<string>\",\n \"k\": 1,\n \"query\": [\n 123\n ],\n \"table_name\": \"<string>\",\n \"filter\": {\n \"field_name\": \"<string>\",\n \"query\": \"<string>\"\n },\n \"projection\": [\n \"<string>\"\n ],\n \"rerank\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platform.infino.ws/v1/vector_search/{database}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"field_name\": \"<string>\",\n \"k\": 1,\n \"query\": [\n 123\n ],\n \"table_name\": \"<string>\",\n \"filter\": {\n \"field_name\": \"<string>\",\n \"query\": \"<string>\"\n },\n \"projection\": [\n \"<string>\"\n ],\n \"rerank\": {}\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
POST /v1/vector_search/{database}. Projection is optional (absent ⇒ the
engine-native _id + score); filter is an optional pushdown text
pre-filter. Probe width and rerank budget are engine-decided (drain-time
calibration) — there are no tuning knobs.
Rows reranked for a question before they come back: {"question": "...", "k": 10}. The rows a query finds are each put to the
deployment's grader with the question - the pass the agent APIs'
ask ranks its results by - and the top k come back, best first,
as JSON: {"rows": [...], "rerank": {...}} with the pass's coverage.
The grader reads at most the deployment's triage pool
(ask.triage.pool): a search fetches the pool rather than its k,
and a match's or a statement's rows past the pool are neither graded
nor returned, the coverage counting them (over_pool). k is the
search's own when absent, or every row graded; a k over the pool is
refused (400). Off when absent or null. Needs a deployment with the
agent APIs and their triage pass; refused otherwise (501). Its shape
is the agent APIs' (api::rerank::Rerank), carried here as it came.
Response
Matching rows as an Arrow IPC stream (application/vnd.apache.arrow.stream), or JSON when the request sends Accept: application/json.
Was this page helpful?
