pub enum RetrieverError {
StoreError(VectorStoreError),
EmbeddingError(String),
NoResults,
}Expand description
检索器错误类型
Variants§
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