pub struct Retrieval {
pub targets: TargetSet,
pub channels: Vec<Channel>,
pub fusion: Fusion,
pub rerank: Rerank,
pub filters: Filters,
pub limit: usize,
pub explain: bool,
}Expand description
The query. Section §11.2 verbatim — type-only, no execution.
Fields§
§targets: TargetSet§channels: Vec<Channel>§fusion: Fusion§rerank: Rerank§filters: Filters§limit: usize§explain: boolImplementations§
Source§impl Retrieval
impl Retrieval
Sourcepub fn hybrid(space: impl Into<String>) -> Self
pub fn hybrid(space: impl Into<String>) -> Self
Hybrid preset: lexical (word + ngram) ∪ vector (entity) ∪ graph expand.
Backward-compatible with the M7 QueryMode::Hybrid API surface.
Sourcepub fn semantic(space: impl Into<String>) -> Self
pub fn semantic(space: impl Into<String>) -> Self
Dense semantic preset (entity-vector KNN only).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Retrieval
impl<'de> Deserialize<'de> for Retrieval
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Retrieval
impl RefUnwindSafe for Retrieval
impl Send for Retrieval
impl Sync for Retrieval
impl Unpin for Retrieval
impl UnsafeUnpin for Retrieval
impl UnwindSafe for Retrieval
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