pub enum EmbedMode {
Query,
Document,
}Expand description
Whether an embedding is for a query or a document/passage.
Variants§
Query
Query embedding (may use a different instruction/prefix).
Document
Document / passage embedding.
Trait Implementations§
impl Copy for EmbedMode
impl Eq for EmbedMode
impl StructuralPartialEq for EmbedMode
Auto Trait Implementations§
impl Freeze for EmbedMode
impl RefUnwindSafe for EmbedMode
impl Send for EmbedMode
impl Sync for EmbedMode
impl Unpin for EmbedMode
impl UnsafeUnpin for EmbedMode
impl UnwindSafe for EmbedMode
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