Skip to main content
A query searches one namespace by meaning and by keywords at once, reranks the best candidates, and returns one result per document: its best matching passage.
Results are sorted best first. Scores compare results within one query; do not compare them across queries.

Embed and rerank

The models behind query are also available on their own, for example to rerank results you got from somewhere else.
Use type: "query" for search queries and type: "document" (the default) for text you store.