Repository navigation
fix(ai): rag index skips data fixtures and survives a failed batch - #6719
Merged
Merged
Conversation
Owner
Author
Step after the merge
Owner review points
|
dan-petty
force-pushed
the
fix/6717-rag-index-skips-data
branch
from
November 22, 2026 02:11
7f2144a to
d574d6d
Compare
2 tasks
dan-petty
force-pushed
the
fix/6717-rag-index-skips-data
branch
from
November 22, 2026 02:45
d574d6d to
b40b80e
Compare
…rvives a failed batch)
…generated files EmbeddingsError holds the HTTP status of the reply. A batch whose input the endpoint refuses (400, 413, 422) is skipped at once. A transient failure gets one more attempt, then the run skips it. Any other error ends the run at once. The LiteLLM proxy answers an unknown model with 400 too, so a second refused batch before an embedded batch ends the run. The indexer leaves out only linguist-vendored files.
A pybreaker circuit breaker of each index run counts the batches in a row that fail both attempts with a transient error. After 3 such batches, or after the first one before any batch of the run got vectors, the run stops with exit status 1, the last error and the skipped files, and sends no request for the later batches. A batch that gets vectors, or whose input the endpoint refuses, sets the count back to 0. A new test proves that a skipped code batch does not stop the docs collection.
dan-petty
force-pushed
the
fix/6717-rag-index-skips-data
branch
from
November 22, 2026 03:03
b40b80e to
477d709
Compare
dan-petty
marked this pull request as ready for review
November 22, 2026 04:07
dan-petty
pushed a commit
that referenced
this pull request
Nov 22, 2026
🤖 I have created a release *beep* *boop* --- ## [0.192.2](v0.192.1...v0.192.2) (2026-11-22) ### Bug Fixes * **ai:** rag index skips data fixtures and survives a failed batch ([#6719](#6719)) ([568475e](568475e)), closes [#6717](#6717) * **k8s:** Tempo starts again with config keys of its version ([#6733](#6733)) ([0cdd324](0cdd324)), closes [#6730](#6730) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
devops ai rag indexleaves out each file that.gitattributesmarkslinguist-vendored, read with onegit check-attrcall. Generatedfiles, such as the command reference, stay. The tiktoken fixtures are
marked vendored: a full index stopped on one of their batches.
EmbeddingsErrorholds the HTTP status of the reply. A batch with atimeout, a 429 or a 5xx reply gets one more attempt. A 400, 413 or 422
reply gets none. The run skips such a batch, caches its files as
incomplete, indexes the other batches of both collections, and exits 1
with the skipped files. A pybreaker breaker stops the run after 3
failed batches in a row, or after the first one before any batch got
vectors. Any other error, such as 401, 403 or 404, ends the run at
once. The LiteLLM proxy answers an unknown model with 400 too, so a
second refused batch before an embedded batch also ends the run.
Closes #6717
Change:
openspec/changes/archive/2026-11-22-6717-rag-index-skips-data/