spacedb-vector 0.7.3

SpaceDB Layer 4 — the private-RAG substrate: an on-node vector index where a query embedding goes in and only top-k results come out (ids + scores), so the corpus never leaves the home. Retrieval is gated by an mID capability. Phase 1 SpaceDB Mission, M6.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Errors for the vector index.

use thiserror::Error;

pub type VectorResult<T> = Result<T, VectorError>;

#[derive(Debug, Error)]
pub enum VectorError {
    /// A vector's dimension didn't match the index.
    #[error("dimension mismatch: index is {expected}-d, got {got}-d")]
    DimMismatch { expected: usize, got: usize },

    /// Retrieval was attempted without an authorized capability.
    #[error("retrieval denied: no authorized capability")]
    Denied,
}