EmbeddingError represents a structured error returned from an embedding provider (e.g., OpenAI or VoyageAI) or local encoders/extractors.
Value parameters
code
Optional error code: the HTTP status of the provider's reply (e.g., "401"), as a string because it is LLMError.code. None for an error that is not an HTTP reply.
message
Human-readable error message from the provider or client.
provider
Source component ("openai", "voyage", "encoder", "extractor", etc.) httpStatus is code when it is an HTTP status. An embedding error is retryable when that status is 408, 429 or 5xx, as a ServiceError with it would be; one with no status is not.
The delay the server asked for before the request is sent again (an HTTP Retry-After header), and only that: None when the server gave none. A delay the library chooses when the server is silent is the retry policy's, never reported here, so "the server said" and "we guessed" stay distinguishable.
The delay the server asked for before the request is sent again (an HTTP Retry-After header), and only that: None when the server gave none. A delay the library chooses when the server is silent is the retry policy's, never reported here, so "the server said" and "we guessed" stay distinguishable.