Skip to content

Conversation

@rostilos
Copy link
Owner

@rostilos rostilos commented Jan 20, 2026

This pull request introduces significant refactoring and feature expansion to the RAG (Retrieval-Augmented Generation) branch indexing logic, transitioning from the older "delta index" terminology and architecture to a more general and scalable "multi-branch index" approach. It also removes unused event publishing logic from the branch analysis processor and updates related dependencies.

Key changes include:

Multi-Branch Index Refactor and Feature Expansion

  • Refactored the RagOperationsService interface to replace all "delta index" concepts with "multi-branch index" terminology, updating method names, documentation, and logic accordingly. This includes new and renamed methods such as isMultiBranchEnabled, shouldHaveBranchIndex, createOrUpdateBranchIndex, updateBranchIndex, isBranchIndexReady, deleteBranchIndex, and cleanupStaleBranches. The decision record and related logic were also updated to MultiBranchRagDecision. [1] [2] [3] [4]

  • Added new default methods to the RagOperationsService for updating, deleting, and cleaning up branch indexes, providing a more complete multi-branch indexing lifecycle.

Codebase Cleanup and Dependency Updates

  • Updated the import in BranchAnalysisProcessor to use the new location of RagOperationsService from the analysis API package, reflecting the architectural decoupling of RAG operations from the engine.

  • Removed the unused ApplicationEventPublisher dependency and all related event publishing logic (such as analysis started/completed events) from BranchAnalysisProcessor, simplifying the analysis workflow and reducing unnecessary coupling. [1] [2] [3] [4] [5] [6] [7] [8]

Build and Subproject Updates

  • Updated the frontend subproject commit reference to the latest version.
  • Removed obsolete compiled class and status files related to the previous RAG operations implementation. [1] [2]

…uplication

- Removed the HybridQueryService and integrated its functionality into RAGQueryService.
- Enhanced RAGQueryService to support multi-branch queries, allowing simultaneous searches across target and base branches.
- Implemented deduplication logic to prioritize results from the target branch while preserving cross-file relationships.
- Updated utility functions to create project-level namespaces for collections.
- Improved error handling and logging for collection existence checks and fallback branch logic.
- Adjusted semantic search methods to accommodate branch filtering and excluded paths.
- Enhanced documentation and comments for clarity on new functionalities and changes.
@coderabbitai
Copy link

coderabbitai bot commented Jan 20, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rostilos rostilos merged commit d0a1697 into 1.2.0-rc Jan 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants