sift-embed is the canonical runnable embedding reference for consuming
sift as a library from another Rust crate.
This example intentionally stays on the stable crate-root surface:
- It depends on
siftthrough the crate root. - It builds a standalone
sift-embedexecutable. - It renders
SearchResponselocally instead of usingsift::internal. - It demonstrates the direct
searchmode only.
For the full library surface, including turn-aware and controller modes, see LIBRARY.md.
From the repository root:
just embed-build
just embed-sift tests/fixtures/rich-docs "architecture decision"You can also run the example directly through Cargo:
cargo run --manifest-path examples/sift-embed/Cargo.toml -- search "hybrid search"
cargo run --manifest-path examples/sift-embed/Cargo.toml -- search tests/fixtures/rich-docs "architecture decision"sift-embed search [OPTIONS] [PATH] <QUERY>If PATH is omitted, sift-embed search "<term>" searches the current
directory.