POST
/
queries
/
top-pages

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
collection_name
string
required

The name of the collection.

k
integer
required

The number of pages to return. If there are not enough pages matching your filters, then fewer may be returned. This number must be between 1 and 2048, inclusive.

query
string
required

The natural language query to search with. This cannot exceed 4096 characters (A single UTF-8 codepoint, is considered to be 1 character).

filter

The query filter to apply. Please read Metadata Filtering for more information. If not provided, then all documents will be searched.

include_content
boolean
default:
false

If set to true, then the content of all pages will be returned.

Response

200 - application/json
results
object[]
required