pub struct LlmEmbeddingProvider { /* private fields */ }Implementations§
Source§impl LlmEmbeddingProvider
impl LlmEmbeddingProvider
pub fn new(config: EmbeddingConfig) -> Self
Trait Implementations§
Source§impl EmbeddingProvider for LlmEmbeddingProvider
impl EmbeddingProvider for LlmEmbeddingProvider
Source§fn embed_both(&self, text: &str) -> Result<(Vec<f32>, Vec<f32>)>
fn embed_both(&self, text: &str) -> Result<(Vec<f32>, Vec<f32>)>
Content and trigger share the same model and dimension here, so a single HTTP request serves both spaces — half the round trips per recall.
fn model_name(&self) -> &'static str
fn content_dim(&self) -> usize
fn trigger_dim(&self) -> usize
fn embed_content(&self, text: &str) -> Result<Vec<f32>>
fn embed_trigger(&self, text: &str) -> Result<Vec<f32>>
Auto Trait Implementations§
impl Freeze for LlmEmbeddingProvider
impl RefUnwindSafe for LlmEmbeddingProvider
impl Send for LlmEmbeddingProvider
impl Sync for LlmEmbeddingProvider
impl Unpin for LlmEmbeddingProvider
impl UnsafeUnpin for LlmEmbeddingProvider
impl UnwindSafe for LlmEmbeddingProvider
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