Repository navigation
refactor(ai): RAG components are wired once in ai/rag - #3856
Merged
Merged
Conversation
Owner
Author
|
Test and check results (local):
Differences from the old behavior, on purpose:
Review fixes: the investigator test now checks the embedder, the Qdrant client and the collection names that reach |
dan-petty
marked this pull request as ready for review
November 6, 2026 22:11
resolve_rag_components in ai/rag/indexer.py builds the Qdrant client, the embedder and the collection names from the settings. The rag commands, the RAG investigation and the ai commands call it, so the investigator now uses the Qdrant and embedder seams. build_library_vector_store in ai/rag/library_store.py replaces the wiring in commands/ai_ingest.py. The pass-through load_settings and the private aliases are gone.
dan-petty
force-pushed
the
refactor/1329-rag-components-wired-once
branch
from
November 6, 2026 22:23
5878152 to
c125c45
Compare
dan-petty
pushed a commit
that referenced
this pull request
Nov 6, 2026
🤖 I have created a release *beep* *boop* --- ## [0.74.0](v0.73.0...v0.74.0) (2026-11-06) ### Features * **roadmap:** Add reason and queries to the alternatives comment ([#3846](#3846)) ([86b6ed7](86b6ed7)), closes [#2944](#2944) * **roadmap:** build job pull request text with pull_form ([#3847](#3847)) ([a7aacea](a7aacea)), closes [#3215](#3215) ### Code Refactoring * **ai:** RAG components are wired once in ai/rag ([#3856](#3856)) ([d175616](d175616)) --- 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.
One public function,
resolve_rag_components, now builds the Qdrant client, the embedder and the collection names from the settings. Thedevops ai ragcommands,retrieve_rag_contextand the RAG investigator call it.build_library_vector_storemoves toai/rag/library_store.py, andcommands/ai_ingest.pyonly calls it.Three copies of this wiring existed, and the investigator built
QdrantClientandEmbeddingsEngineby hand, so it skipped the test seams. One function keeps every caller on the seams. The private aliases_get_rag_components,_build_runtime_vector_storeand_load_local_contracts, and the pass-throughload_settingsofcommands/rag.py, are gone.Closes #3850
Change:
openspec/changes/archive/2026-11-06-3850-rag-components-wired-once/