#[non_exhaustive]pub enum RetrieverError {
StoreError(VectorStoreError),
EmbeddingError(String),
LlmError(String),
InvalidFilter(String),
NoResults,
}Expand description
检索器错误类型
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)
向量存储错误
EmbeddingError(String)
嵌入错误
LlmError(String)
LLM 拆解失败(调用失败 / 输出无法解析)。SelfQuery(S4) 用。
InvalidFilter(String)
过滤器引用了 allowed_attributes 白名单外的字段(SelfQuery)。
显式报错,绝不静默丢弃后回落无过滤检索——那会让本该被过滤排除的
数据被返回(数据面过曝)。
NoResults
无结果
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