Repository navigation
feat: import restores the vectors of imported documents; import --full (#1587) - #1592
Merged
Merged
Conversation
#1587) A structural bundle carried chunk text but no vectors, so restored documents were invisible to semantic search. import now re-embeds the chunks, repair --reembed covers chunks, and --full requires a bundle.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Oct 29, 2026
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.
What
uteke importof a structural bundle (uteke export --full) now regenerates the document chunk vectors after the restore and reportschunks_reembedded. Before, documents came back with slug, title, parent and content but no chunk vectors, so semantic search could not find them.uteke repair --reembedalso re-embeds chunks that have no vector (chunks_missing,chunks_reembedded,chunks_failed, omitted from the JSON when zero), for the case where the backend was down during the import.uteke import --fullstates that the input must be a bundle; any other file is an error before anything is stored. A bundle is still detected without the flag.Why
#1587. Reproduced with two stores and a mock embedding endpoint: the export, the import, the hierarchy and the content already worked locally, but
doc searchonly matched through keywords because the restored chunks had no vectors, and nothing could regenerate them.Testing
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked,cargo run -p docgen(no diff).reembed_missing_chunks, which is idempotent; semantic search then finds the restored document. New CLI test:--fullon a non-bundle fails and stores nothing.10chunks re-embedded,doc searchreturns chunk hits.POST /importstays JSONL-only with its 10 MB cap, so a large store moves through the files ofexport --fullandimport --full(the bundle of the manual check was 467 KB for two 112 KB documents; a 681-document workspace is far above the HTTP cap). A streaming or chunked HTTP bundle import would be a separate design.Uteke::import), so the LongMemEval guard does not apply.