Repository navigation
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem
Checked on 2026-11-22 (main 8af846c), in a full reindex after the embedding model name changed to local/qwen3-embedding:0.6b.
devops ai rag index --include-kbstopped at 24576 of 41385 code chunks:Failed to embed batch from 'tests/fixtures/tiktoken/o200k_base.tiktoken' ...: ReadTimeout. Collectiondevops_docsstayed empty, because the run ends before the docs phase.- Cause 1: the indexer embeds data files.
_is_indexable_file(src/devops_cli/ai/rag/indexer.py:110-134) leaves out lock files, hidden files, git-ignored files and files over 50 MB (DEFAULT_MAX_AST_FILE_SIZE_BYTES, a DoS limit). The two tiktoken vocabularies intests/fixtures/tiktoken/(1.7 MB and 3.6 MB of base64 tokens) pass, and give thousands of chunks with no meaning for a search. - Cause 2: one failed batch ends the run. The upsert loop (
src/devops_cli/ai/rag/indexer.py:1094-1122) raisesEmbeddingsErroron the first exception ofembed_texts, with no retry and no skip, so no file after that batch gets indexed.
Proposed remedy
- Leave out each file that
.gitattributesmarkslinguist-generatedorlinguist-vendored, read withgit check-attr. The repository already marksuv.lockandpackage-lock.jsonthis way. Mark the tiktoken fixtureslinguist-vendored: they are data of tiktoken. - Retry a failed batch with the bounded retry helper that
src/devops_cli/ai/rag/investigator.pyuses, then skip the batch, record its files, index the other batches, and exit 1 at the end with the list of the skipped files. - Write the tests first: a file marked
linguist-vendoredis not indexed; with an embedder fake that fails one batch on each try, the run indexes the other batches, names the skipped files and exits 1.
Acceptance criteria
- The new tests pass with
uv run devops ci teston the indexer tests. - After the merge,
devops ai rag index --include-kbcompletes on this repository, anddevops ai rag statusshows points indevops_codeanddevops_docs.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 22, 2026
Both fix failed-batch handling in the RAG indexer, but 1296 fixes resume-cache logic while this candidate adds file filtering and batch retry/skip.docs(openspec): plan the change of #6717 (rag index skips data and su…
docs(openspec): archive the change of #6717
docs(openspec): plan the change of #6717 (rag index skips data and su…
docs(openspec): archive the change of #6717
docs(openspec): plan the change of #6717 (rag index skips data and su…
docs(openspec): archive the change of #6717
docs(kb): say that an index run stops early on an endpoint outage (#6717
chore(main): release 0.192.2 (#6741)
devops-cli-service commentedon Nov 22, 2026
Released in v0.192.2: https://github.com/dan-petty/devops-cli/releases/tag/v0.192.2
devops-cli-service commentedon Nov 22, 2026
Live since 2026-11-22 04:36 UTC