GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — atlas-search: step 3 - CLI mode at Python surface parity (#5353) by dezren39 · Pull Request #5377 · developing-today/code Conversation
|
| Python flag | Rust | Notes |
|---|---|---|
query / chunk_id positionals |
mirrored | |
--k, --pool, --mode, --kind, --topic, --project, --client, --since, --until, --max-sensitivity, --group-by-session, --expand, --with-message, --text |
mirrored | identical defaults + validation messages (via atlas-core) |
--backend, --db, --vecdb |
mirrored | auto = token chain → turso, else local (same order as the Python) |
--model (env ATLAS_SEARCH_MODEL), --vec-table (env ATLAS_VEC_TABLE) |
mirrored | env fallbacks preserved via clap |
--trunc, --vector-backend |
mirrored | scan default; index modes ride atlas-core |
--embedder |
mirrored, with a declared divergence | flag + provenance label identical; a fastembed embedder or a non-Snowflake --model cannot be served by atlas-embed (Snowflake ST path only) and fails loudly for vector/hybrid, pointing at the Python CLI — never a silent wrong-model embedding. FTS/get-chunk unaffected. |
| — (new) | --via-service, --service-url |
step 3 addition per the design; no Python counterpart |
Other declared divergences: help formatting is clap's (flags/defaults identical); default_db_path's script-relative fallback resolves relative to the binary (only reachable when the canonical path is absent); ATLAS_SEARCH_QVEC_FILE is a test-only hook substituting a fixed query vector — the same monkeypatch the Python fixture generator applies to embed_query.
fixtures/core-expectations.json run through the compiled binary against the fixture DB — envelopes equal, and stdout byte-equal to CPython's own json.dumps rendering of the recorded envelopes (14/14). --text goldens were generated by the Python's render_text itself and match byte-for-byte. Not-found exit code + stderr pinned by test.ATLAS_ORT_LIB = the v3 venv's libonnxruntime.so.1.31.1 + gcc-lib/zlib on the loader path): 4 questions, top-10s (chunk ids, scores, rank_sources) identical to the deployed Python CLI on all 4. Cold one-shot latency: Rust 13.0–16.4s vs Python 17.2–25.6s in the same battery (both dominated by model load; Python baseline ~35s colder).--via-service against the (not yet existing) service → stderr atlas-search: warning: --via-service: service at http://127.0.0.1:18760 unreachable (io: Connection refused (os error 111)); falling back to standalone, envelope note recorded, results identical to the standalone run.cargo test --workspace (29 tests incl. 7 new), cargo clippy --workspace --all-targets, cargo fmt --check — all clean.service::attempt's probe with the atlas-proto submit/page client; the fallback contract around it (stderr warning + envelope note + standalone) does not change.ATLAS_MODEL_DIR → ~/.local/state/atlas-search/model/<rev> → HF cache snapshot, and ORT from ATLAS_ORT_LIB → ~/.local/state/atlas-search/ort/libonnxruntime.so; the packaged build must instead resolve ONNX Runtime from its nix closure, which must carry libstdc++.so.6 + libz.so.1 (the dlopen loader-path lesson from opencode#1554 — verified live here with the venv's runtime plus the store gcc-lib/zlib pair).
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The atlas-search binary crate: search + get-chunk subcommands over atlas-core/atlas-embed, mirroring the Python CLI flag-for-flag (flags, defaults, output envelope, --text rendering, exit codes). Standalone by default (direct Turso via the read-only token flow, or --backend local against a publish file); the query embedder loads lazily so FTS-only search and get-chunk work with no model present, and vector/hybrid fail loudly without one. --via-service implements the prefer-with-loud-fallback contract now (stderr warning + envelope note, standalone results); the job-protocol client lands behind the same seam in step 4 (#5354). Output is byte-identical to the Python: a CPython-compatible JSON writer (indent=1, repr float formatting) and a line-for-line render_text port, proven by fixture parity — all 12 recorded search cases + both get-chunk cases byte-equal through the binary, plus --text goldens generated by the Python renderer itself.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Caution Review failedThe pull request is closed.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.