#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum VectorStoreError {
#[error("document not found: {id}")]
NotFound {
id: String,
},
#[error("dimension mismatch: expected {expected}, got {actual}")]
DimensionMismatch {
expected: usize,
actual: usize,
},
#[error("vector store error: {message}")]
Other {
message: String,
},
}