#[non_exhaustive]pub enum RetrieverError {
StoreError(VectorStoreError),
EmbeddingError(String),
LlmError(String),
InvalidFilter(String),
NoResults,
}Expand description
Retriever error type
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StoreError(VectorStoreError)
Vector store error
EmbeddingError(String)
Embedding error
LlmError(String)
LLM breakdown failure (call failed / output unparseable). Used by SelfQuery (S4).
InvalidFilter(String)
The filter references a field outside the allowed_attributes whitelist (SelfQuery).
Errors out explicitly, never silently falls back to unfiltered retrieval — that would
return data that should have been filtered out (data-plane over-exposure).
NoResults
No results
Trait Implementations§
Source§impl Debug for RetrieverError
impl Debug for RetrieverError
Source§impl Display for RetrieverError
impl Display for RetrieverError
Source§impl Error for RetrieverError
impl Error for RetrieverError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<VectorStoreError> for RetrieverError
impl From<VectorStoreError> for RetrieverError
Source§fn from(e: VectorStoreError) -> Self
fn from(e: VectorStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RetrieverError
impl RefUnwindSafe for RetrieverError
impl Send for RetrieverError
impl Sync for RetrieverError
impl Unpin for RetrieverError
impl UnsafeUnpin for RetrieverError
impl UnwindSafe for RetrieverError
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
Mutably borrows from an owned value. Read more