API ReferenceRetrievals
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
Authorization
RequiredBearer <token>Bearer token authentication required
In: header
Request Body
application/json
Requiredquery
RequiredstringThe user’s natural‐language query (min length 2)
Minimum length:
2
top_chunk
integerNumber of chunks to return
Default:
5
Minimum: 1
filter
objectLogical combination of conditions. At least one of must
, should
, or must_not
must be non‐empty.
rerank
booleanIf true, rerank top candidates by hypothetical‐answer similarity
Default:
false
min_score_threshold
numberDiscard chunks with score below this
Minimum:
0
Retrieved and (optionally) reranked chunks