Skip to main content

Crate gonzalo_vector

Crate gonzalo_vector 

Source
Expand description

Vector-search capability layer for gonzalo.

Provides the VectorIndex trait (and its exact in-memory implementation MemoryVectorIndex) plus the Embedder seam so caliban-side model providers and gonzalo-hosted embedders share a single interface.

All index operations are async so remote / approximate backends can be added in later milestones without breaking callers.

Re-exports§

pub use index::MemoryVectorIndex;
pub use shard::DEFAULT_SHARDS;
pub use shard::shard_of;
pub use record_index::RecordVectorIndex;

Modules§

index
In-memory exact cosine vector index keyed by [RecordKey].
record_index
A VectorIndex whose contents survive the process that built it (ADR 0027).
shard
Shard assignment and the on-blob format for a durable vector index.

Structs§

Match
One search hit: the record key and its similarity score (cosine, in [-1.0, 1.0]; higher is more similar).

Traits§

Embedder
Turns text into an embedding vector.
VectorIndex
A vector index keyed by [RecordKey].