Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ compass/

The split exists for a reason. `compass-index-api` is the smallest possible crate that downstream backends bind to: it has no I/O, no async runtime, no logging. New backends (CPU, GPU, IVF-PQ, sharded) can be developed against it without pulling in the rest of Compass.

`compass-vector-gpu` is opt-in. Default builds don't compile it. Enable with `--features gpu` from the umbrella crate, or depend on it directly for embedded use.
`compass-vector-gpu` is opt-in. Default builds don't compile it: the `compass` crate has no `gpu` feature and no dependency on the GPU crate. Depend on `compass-vector-gpu` directly for embedded use. (`compass-index-api` does carry a `gpu` feature, but it only toggles that crate's own `gpu_available()` helper — it does not pull in a GPU backend.)

## Module map (compass crate)

Expand Down Expand Up @@ -98,7 +98,7 @@ The "one-click model upgrade" feature relies on the rebuild path. When a new vec
3. Once complete, the new space's status flips to `active`. The default vector space can then be switched atomically.
4. The old space remains on disk for rollback until explicitly deleted.

GPU acceleration applies to the embedding step (via the external endpoint) and, when `--features gpu` is enabled, to the index construction step (CAGRA on GPU is ~12x faster than CPU HNSW build at dim 768/1024).
GPU acceleration applies today only to the embedding step (via the external endpoint). GPU index construction (CAGRA, ~12x faster than CPU HNSW build at dim 768/1024) lives in `compass-vector-gpu`, which is not wired into the engine — see the note above.

## GPU backend build prerequisites

Expand Down
4 changes: 2 additions & 2 deletions crates/compass-vector-gpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
//!
//! First build of cuVS takes 30-60 minutes; cache the artifact aggressively in CI.
//!
//! # Usage from `compass`
//! # Usage
//!
//! ```toml
//! [dependencies]
//! compass = { version = "0.2", features = ["gpu"] }
//! compass-vector-gpu = { git = "https://github.com/runcaptain/compass" }
//! ```
//!
//! At runtime, [`CuvsHnswIndex`] implements [`compass_index_api::VectorIndex`]
Expand Down