You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 17a3ca0
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -65,7 +67,7 @@ Providers reply with positions into the request array, so each score maps back t
65
67
66
68
## Errors
67
69
68
-
Failures throw `RerankRequestError` (`extends Error`), carrying the classified `InferenceError` from `@intx/inference` as `reason` and the request `url`. That covers transport failures, HTTP errors, and replies in the wrong shape; retryable errors are retried first under the `retryPolicy` option, which defaults to `createDefaultRetryPolicy()`. An invalid config, including a missing `model` for Cohere or Voyage, throws arktype's `TraversalError` before any request is sent.
70
+
Failures throw `RerankRequestError` (`extends Error`), carrying the classified `InferenceError` from `@intx/inference` as `reason` and the request `url`. That covers transport failures, HTTP errors, and replies in the wrong shape; retryable errors are retried first under the `retryPolicy` option, which defaults to `createDefaultRetryPolicy()`. An invalid config, including a missing `model` for Cohere or Voyage, throws arktype's `TraversalError` before any request is sent; an `apiStyle` the registry does not know throws a plain `Error` naming it.
69
71
70
72
Fallback is left to the caller: catch the error and keep your own ordering if a reranker outage should not fail search.
0 commit comments