pub enum RoutingMode {
Auto,
Vector,
Bm25,
Hybrid,
}Expand description
Retrieval routing mode for recall and search (CE-10).
Controls which retrieval index the server uses. Auto (default) lets the
server pick the best strategy based on the query.
Variants§
Auto
Server picks the best strategy (default).
Vector
Force ANN vector search (HNSW).
Bm25
Force BM25 full-text search.
Hybrid
Fuse ANN and BM25 scores (RRF).
Trait Implementations§
Source§impl Clone for RoutingMode
impl Clone for RoutingMode
Source§fn clone(&self) -> RoutingMode
fn clone(&self) -> RoutingMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoutingMode
impl Debug for RoutingMode
Source§impl<'de> Deserialize<'de> for RoutingMode
impl<'de> Deserialize<'de> for RoutingMode
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
Source§impl PartialEq for RoutingMode
impl PartialEq for RoutingMode
Source§fn eq(&self, other: &RoutingMode) -> bool
fn eq(&self, other: &RoutingMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RoutingMode
impl Serialize for RoutingMode
impl Eq for RoutingMode
impl StructuralPartialEq for RoutingMode
Auto Trait Implementations§
impl Freeze for RoutingMode
impl RefUnwindSafe for RoutingMode
impl Send for RoutingMode
impl Sync for RoutingMode
impl Unpin for RoutingMode
impl UnsafeUnpin for RoutingMode
impl UnwindSafe for RoutingMode
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