Document

Searches Documents in a DocumentCollection

POST
Searches over documents in a collection based on provided search criteria. One of text or metadata must be provided. Returns an empty list if no documents are found.

Path parameters

collectionNamestringRequired
Name of the Document Collection

Query parameters

limitintegerOptional
Limit the number of returned documents

Request

This endpoint expects an object.
metadata
map from strings to anyOptional
Document metadata to filter on.
min_score
doubleOptional
mmr_lambda
doubleOptional
The lambda parameter for the MMR Reranking Algorithm.
search_type
enumOptional
The type of search to perform. Defaults to "similarity". Must be one of "similarity" or "mmr".
Allowed values: similaritymmr
text
stringOptional
The search text.

Response

This endpoint returns an object
current_page
integerOptional
query_vector
list of doublesOptional
result_count
integerOptional
results
list of objectsOptional
total_pages
integerOptional

Errors