Repository navigation
feat: batch import + embed fallback - #488
Merged
Merged
Conversation
- FallbackEmbedder: local ONNX primary with optional cloud fallback - EmbedFallbackConfig in CLI config + env var resolution - FallbackSettings in core + set_fallback_settings() method - Wire fallback wrapping in ensure_embedder() with dim validation - Batch import: discover_files, determine_strategy, run_import_batch - import_single_document via doc_upsert_with_parent - Sequential memory extraction loop with error bail-out - Dry-run mode, JSON output, progress summary Tasks #1-7 of v0.6.0 milestone (#17)
- Add --batch-dir, --as-doc, --as-memory, --extract-parallel (1-10), --dry-run, --max-size, --recursive flags to Import command - Wire batch mode dispatch in commands/mod.rs - Make ImportStrategy pub(crate) for cross-module access - conflicts_with/requires clap constraints for UX safety Task #10 of v0.6.0
Tests: discover_files (md/txt/jsonl, recursive, max_size, not-dir), determine_strategy (default, force, extract flag), slug_from_path, title_from_slug. Task #12 of v0.6.0
Task #13 — final commit for v0.6.0 batch import & embed fallback feature.
…pped_facts Cora review: ambiguous 'skipped' field mixed file-level and fact-level skip counts. Now tracks them separately for clearer batch import reporting. All 287 tests pass.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
…_str_replace - Allow clippy::too_many_arguments on run_import_batch (11 args, intentional) - Allow dead_code on BatchFileResult (used by JSON output, not constructed yet) - Collapse consecutive str::replace into single call CI should pass: fmt + clippy clean, 10/10 tests pass.
This was referenced Jun 28, 2026
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
feat: batch import + embed fallback
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.
Summary
Batch Import
--batch-dir.md/".txt"/.jsonlfrom a directory in one command--batch-dir,--recursive,--as-doc,--as-memory,--max-size,--extract,--dry-runEmbed Fallback
FallbackEmbedder: tries primary embedder, falls back to cloud API on failureMockEmbedder: returns zero vectors for dry-run/testing[embed_fallback]inuteke.jsonor env varsFiles Changed
uteke-core/src/embed/fallback.rs— NEW (FallbackEmbedder + MockEmbedder + 7 tests)uteke-core/src/lib.rs— FallbackSettings + wiringuteke-cli/src/config.rs— EmbedFallbackConfiguteke-cli/src/cli.rs— 7 new Import flagsuteke-cli/src/commands/maintenance.rs— batch import + 10 unit testsCHANGELOG.md— v0.6.0 entryTests
Deferred to v0.6.1
--extract-parallel N)