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
Copy file name to clipboardExpand all lines: docs/en/guides/01-configuration.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,28 @@ Embedding model configuration for vector search, supporting dense, sparse, and h
130
130
131
131
`embedding.max_retries` only applies to transient errors such as `429`, `5xx`, timeouts, and connection failures. Permanent errors such as `400`, `401`, `403`, and `AccountOverdue` are not retried automatically. The backoff strategy is exponential backoff with jitter, starting at `0.5s` and capped at `8s`.
132
132
133
+
#### Embedding Circuit Breaker
134
+
135
+
When the embedding provider experiences consecutive transient failures (e.g. `429`, `5xx`), OpenViking opens a circuit breaker to temporarily stop calling the provider and re-enqueue embedding tasks. After the base `reset_timeout`, it allows a probe request (HALF_OPEN). If the probe fails, the next `reset_timeout` is doubled (capped by `max_reset_timeout`).
136
+
137
+
```json
138
+
{
139
+
"embedding": {
140
+
"circuit_breaker": {
141
+
"failure_threshold": 5,
142
+
"reset_timeout": 60,
143
+
"max_reset_timeout": 600
144
+
}
145
+
}
146
+
}
147
+
```
148
+
149
+
| Parameter | Type | Description |
150
+
|-----------|------|-------------|
151
+
|`circuit_breaker.failure_threshold`| int | Consecutive failures required to open the breaker (default: `5`) |
152
+
|`circuit_breaker.reset_timeout`| float | Base reset timeout in seconds (default: `60`) |
153
+
|`circuit_breaker.max_reset_timeout`| float | Maximum reset timeout in seconds when backing off (default: `600`) |
0 commit comments