Skip to main content
POST

Authorizations

Authorization
string
header
required

Admin JWT or access token for authenticating requests to VectorAI DB.

Path Parameters

collection_name
string
required

The name of the collection to search.

Body

application/json
vector
number[]
required

The query vector to search for. The number of dimensions must match the collection's configured vector size.

Example:
limit
integer
default:10

Maximum number of results to return. Defaults to 10.

Example:

5

offset
integer
default:0

Number of results to skip for pagination. Use with limit to page through results.

Example:

0

score_threshold
number

Minimum similarity score for results. Only points with scores at or above this threshold are returned.

Example:

0.7

filter
object

Optional filter to narrow search results based on payload metadata. See the Filters API for syntax.

with_payload
boolean
default:true

Whether to include payload metadata in the response.

Example:

true

with_vector
boolean
default:false

Whether to include vector data in the response. Set to false to reduce response size.

Example:

false

params
object

Advanced search parameters for tuning search quality and performance.

Response

Search results

usage
object
time
number<double>

Time spent to process this request, in seconds.

Example:

0.0000553

status
string

Operation status.

Example:

"ok"

result
object[]