Retrievals
Semantic‐vector retrieval
Given a natural‐language `query`, retrieves up to `top_chunk` chunks whose embeddings best match. Optionally filters by arbitrary metadata conditions, applies a minimum score threshold, and can rerank using a hypothetical answer embedding.
Authorization
AuthorizationRequiredBearer <token>Bearer token authentication required
In: header
Request Body
application/jsonRequiredqueryRequiredstringThe user’s natural‐language query (min length 2)
Minimum length:
2top_chunkintegerNumber of chunks to return
Default:
5Minimum: 1filterobjectLogical combination of conditions. At least one of must, should, or must_not must be non‐empty.
rerankbooleanIf true, rerank top candidates by hypothetical‐answer similarity
Default:
falsemin_score_thresholdnumberDiscard chunks with score below this
Minimum:
0Retrieved and (optionally) reranked chunks