pub struct SparseEmbedder;Expand description
Local sparse-only helper (no dense model). Default English pipeline
only — hosts needing other languages use Bm25TextConfig
/ Bm25Pipeline directly.
Implementations§
Source§impl SparseEmbedder
impl SparseEmbedder
Sourcepub fn embed_query(text: &str) -> SparseVector
pub fn embed_query(text: &str) -> SparseVector
Embed query text with local wire-compatible BM25 (unit term weights).
Sourcepub fn embed_document(text: &str) -> SparseVector
pub fn embed_document(text: &str) -> SparseVector
Embed document text with local wire-compatible BM25 (tf saturation)
using Qdrant’s qdrant/bm25 defaults.
Sourcepub fn embed_document_with(text: &str, params: &Bm25Params) -> SparseVector
pub fn embed_document_with(text: &str, params: &Bm25Params) -> SparseVector
Embed document text with explicit validated Bm25Params.
Auto Trait Implementations§
impl Freeze for SparseEmbedder
impl RefUnwindSafe for SparseEmbedder
impl Send for SparseEmbedder
impl Sync for SparseEmbedder
impl Unpin for SparseEmbedder
impl UnsafeUnpin for SparseEmbedder
impl UnwindSafe for SparseEmbedder
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