pub enum VecStoreError {
Show 24 variants
Io(Error),
Serialization(String),
DimensionMismatch {
expected: usize,
actual: usize,
},
VectorNotFound {
id: String,
},
InvalidFilter(String),
FilterParse {
position: usize,
message: String,
},
IndexNotInitialized,
InvalidConfig(String),
Corruption {
path: PathBuf,
reason: String,
},
Snapshot(String),
SnapshotNotFound {
name: String,
},
HnswError(String),
PqError(String),
QuantizerNotTrained,
InsufficientTrainingData {
required: usize,
actual: usize,
},
HybridSearch(String),
TextNotIndexed {
id: String,
},
EmptyQuery,
InvalidParameter {
param: String,
reason: String,
},
MemoryLimitExceeded {
current: usize,
limit: usize,
},
ConcurrentAccess(String),
LockError(String),
FeatureNotEnabled {
feature: String,
},
Other(String),
}Expand description
Main error type for all vecstore operations
Variants§
Io(Error)
I/O errors (file operations, network, etc.)
Serialization(String)
Serialization/deserialization errors
DimensionMismatch
Invalid vector dimension
VectorNotFound
Vector not found
InvalidFilter(String)
Invalid filter expression
FilterParse
Filter parsing error
IndexNotInitialized
Index not initialized
InvalidConfig(String)
Invalid configuration
Corruption
Database corruption
Snapshot(String)
Snapshot errors
SnapshotNotFound
Snapshot not found
HnswError(String)
HNSW index errors
PqError(String)
Product Quantization errors
QuantizerNotTrained
Quantizer not trained
InsufficientTrainingData
Insufficient training data
HybridSearch(String)
Hybrid search error
TextNotIndexed
Text not indexed for hybrid search
EmptyQuery
Empty query
InvalidParameter
Invalid parameter
MemoryLimitExceeded
Memory limit exceeded
ConcurrentAccess(String)
Concurrent access error
LockError(String)
Lock error (poisoned lock)
FeatureNotEnabled
Feature not enabled
Other(String)
Other errors
Implementations§
Source§impl VecStoreError
impl VecStoreError
Sourcepub fn dimension_mismatch(expected: usize, actual: usize) -> Self
pub fn dimension_mismatch(expected: usize, actual: usize) -> Self
Create a dimension mismatch error
Sourcepub fn vector_not_found(id: impl Into<String>) -> Self
pub fn vector_not_found(id: impl Into<String>) -> Self
Create a vector not found error
Sourcepub fn invalid_filter(msg: impl Into<String>) -> Self
pub fn invalid_filter(msg: impl Into<String>) -> Self
Create an invalid filter error
Sourcepub fn filter_parse(position: usize, message: impl Into<String>) -> Self
pub fn filter_parse(position: usize, message: impl Into<String>) -> Self
Create a filter parse error
Sourcepub fn invalid_config(msg: impl Into<String>) -> Self
pub fn invalid_config(msg: impl Into<String>) -> Self
Create an invalid config error
Sourcepub fn corruption(path: impl Into<PathBuf>, reason: impl Into<String>) -> Self
pub fn corruption(path: impl Into<PathBuf>, reason: impl Into<String>) -> Self
Create a corruption error
Sourcepub fn snapshot_not_found(name: impl Into<String>) -> Self
pub fn snapshot_not_found(name: impl Into<String>) -> Self
Create a snapshot not found error
Sourcepub fn hnsw_error(msg: impl Into<String>) -> Self
pub fn hnsw_error(msg: impl Into<String>) -> Self
Create an HNSW error
Sourcepub fn insufficient_training_data(required: usize, actual: usize) -> Self
pub fn insufficient_training_data(required: usize, actual: usize) -> Self
Create insufficient training data error
Sourcepub fn hybrid_search(msg: impl Into<String>) -> Self
pub fn hybrid_search(msg: impl Into<String>) -> Self
Create a hybrid search error
Sourcepub fn text_not_indexed(id: impl Into<String>) -> Self
pub fn text_not_indexed(id: impl Into<String>) -> Self
Create a text not indexed error
Sourcepub fn invalid_parameter(
param: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn invalid_parameter( param: impl Into<String>, reason: impl Into<String>, ) -> Self
Create an invalid parameter error
Sourcepub fn memory_limit_exceeded(current: usize, limit: usize) -> Self
pub fn memory_limit_exceeded(current: usize, limit: usize) -> Self
Create a memory limit exceeded error
Sourcepub fn concurrent_access(msg: impl Into<String>) -> Self
pub fn concurrent_access(msg: impl Into<String>) -> Self
Create a concurrent access error
Sourcepub fn feature_not_enabled(feature: impl Into<String>) -> Self
pub fn feature_not_enabled(feature: impl Into<String>) -> Self
Create a feature not enabled error
Trait Implementations§
Source§impl Debug for VecStoreError
impl Debug for VecStoreError
Source§impl Display for VecStoreError
impl Display for VecStoreError
Source§impl Error for VecStoreError
impl Error for VecStoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for VecStoreError
impl From<Error> for VecStoreError
Source§impl From<Error> for VecStoreError
impl From<Error> for VecStoreError
Source§impl<T> From<PoisonError<T>> for VecStoreError
impl<T> From<PoisonError<T>> for VecStoreError
Source§fn from(err: PoisonError<T>) -> Self
fn from(err: PoisonError<T>) -> Self
Auto Trait Implementations§
impl Freeze for VecStoreError
impl !RefUnwindSafe for VecStoreError
impl Send for VecStoreError
impl Sync for VecStoreError
impl Unpin for VecStoreError
impl !UnwindSafe for VecStoreError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more