POST /v1/retrieve embeds the query, searches the vector store, and returns the most relevant chunks. It can optionally rewrite the query and rerank results, the same as the SDK retrieve().
Basic retrieval
With reranking
Vector search is fast but rough. Add a reranker to reorder the top candidates by true relevance. Retrieve wide (top_k), keep the best few (rerank_top_k).
With query rewriting
Turn a conversational follow-up into a standalone search query before retrieval. Thesearch_query field shows what was actually searched.

