Skip to content

refactor(rag): fix mismatch in indexing logic and enable cancellation#325

Merged
haiphucnguyen merged 2 commits intomainfrom
feature/fix-mismatch-rag-indexing-issue
Apr 16, 2026
Merged

refactor(rag): fix mismatch in indexing logic and enable cancellation#325
haiphucnguyen merged 2 commits intomainfrom
feature/fix-mismatch-rag-indexing-issue

Conversation

@haiphucnguyen
Copy link
Copy Markdown
Owner

  • added DatabaseManager import to ProjectIndexer for proper DB connection handling
  • updated ProjectIndexer to deduplicate indexing requests and log skipped operations
  • introduced a cancellation flag in LocalFoldersIndexingCoordinator to halt in‑progress indexing during cleanup
  • extended RagUtils to read and write embedding dimension metadata in index.meta
  • implemented removeAllSegmentMappingsForProject in ResourceSegmentRepository to clear index mappings
  • enhanced DetectUserIntentCommand to include fallback tool handling and refine debugging output

- added DatabaseManager import to ProjectIndexer for proper DB connection handling
- updated ProjectIndexer to deduplicate indexing requests and log skipped operations
- introduced a cancellation flag in LocalFoldersIndexingCoordinator to halt in‑progress indexing during cleanup
- extended RagUtils to read and write embedding dimension metadata in index.meta
- implemented removeAllSegmentMappingsForProject in ResourceSegmentRepository to clear index mappings
- enhanced DetectUserIntentCommand to include fallback tool handling and refine debugging output
@haiphucnguyen haiphucnguyen merged commit 1d0d667 into main Apr 16, 2026
16 checks passed
@haiphucnguyen haiphucnguyen deleted the feature/fix-mismatch-rag-indexing-issue branch April 16, 2026 05:20
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.

1 participant