Skip to main content
POST
Query every namespace

Authorizations

Authorization
string
header
required

An API key from conare.ai/dashboard/keys. A key reaches every namespace in its organization, unless it was made scoped to some namespaces (exact names, or prefixes ending in * such as tenant-*): then every other namespace answers 403 namespace_forbidden, lists and cross-namespace queries leave them out, and the sources routes answer 403 forbidden.

Body

application/json
query
string
required

What to search for

Required string length: 1 - 8000
top_k
integer
default:10

How many results to return.

Required range: 1 <= x <= 100
filter
object

A metadata filter. {"key": value} means equals (a string also matches an array holding it); $eq is the same and $in matches any listed value. Equality compares as text (3 matches "3"). $gt, $gte, $lt and $lte (one per side) compare a number or string value, not an array item: number bounds compare numbers, string bounds compare strings by their UTF-8 bytes (ISO dates sort as dates); a value of the other type never matches. Strings longer than about 220 bytes cannot be compared. Combine filters with $and and $or arrays. $ne and $nin are not supported (400 invalid_filter).

Examples:
rerank
boolean
default:true

Rerank the candidates with the reranking model.

rerank_depth
integer

As in a namespace query.

Required range: 1 <= x <= 100
retrievers
enum<string>[]

As in a namespace query.

Required array length: 1 - 3 elements
Available options:
vector,
keyword,
sparse

Response

Results, best first, and the namespaces searched.

results
object[]
required
namespaces
string[]
required

The namespaces searched.

took_ms
integer
required

Time spent in Conare, in milliseconds.