Rerank documents by query relevance

post

/vecdb/rerank

Score and order documents by relevance to a query using an ONNX reranker hosted in the database.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : VectorDebugFlags
Type: object
Debug flags to be used to trace vector modules
Show Source
Nested Schema : documents
Type: array
Minimum Number of Items: 1
Array of raw document strings to score.
Show Source
Nested Schema : modelParams
Type: object
Additional Properties Allowed: true
Model-specific parameters.
Show Source
Security
Back to Top

Response

Supported Media Types

200 Response

Rerank scores for each input document in descending relevance.
Body ()
Root Schema : VectorRerankResponse
Type: array
List of rerank results sorted by descending relevance.
Show Source
Nested Schema : VectorRerankItem
Type: object
Show Source

400 Response

The request body included invalid parameters.
Body ()
Root Schema : ORDSErrorResponse
Type: object
Show Source
Back to Top