refactor(search): unify incremental synchronous indexing - #12
Merged
Conversation
… backfill share one ... SDD-Mutation: entry-20260907-150733-d-tac-qiq
SDD-Mutation: wip-start-20260907-150829-christopher
Implements 20260907-150733-d-tac-qiq.
…commit 05f740f, ... SDD-Mutation: entry-20260907-154209-s-tac-1j3
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.
MCP backfill embedded one entry at a time, leaving small requests underfilled; CLI indexing prepared every pending chunk before embedding. Both now use one synchronous iterator that fills batches across entries while retaining only active work and publishing complete entry versions as they finish.
CLI progress counts published entries without a chunk-count pre-pass. Remove
embed.NewBatcherand its exclusive exports: consumers own concurrent batching throughEmbedder. Keepembed.Batchedfor request splitting. Consumers must migrate before adopting this API removal.Validated with incremental-consumption, vector-ownership and interruption/retry tests; full repository and example-module tests, vet, lint, build and graph smoke check pass.
Greptile Summary
This PR consolidates CLI and application search indexing around an incremental synchronous pipeline.
embed.Batchedrequest splitting while removing the concurrent batcher API.Confidence Score: 4/5
The PR appears safe to merge, with only a non-blocking misleading progress note for empty entries.
The indexing and publication paths preserve complete-entry ownership, retries, configured batching, and store compatibility; the only accepted concern is CLI presentation when publication occurs without a batch callback.
Files Needing Attention: cmd/sdd/progress.go
Important Files Changed
IndexEmbedderwrapper in runtime composition so synchronous indexing receives its configured batch size.Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "sdd: signal tactical Implemented increme..." | Re-trigger Greptile