pub struct EmbeddingPipeline<'a> { /* private fields */ }Expand description
Manages embedding computation and semantic index storage.
Implementations§
Source§impl<'a> EmbeddingPipeline<'a>
impl<'a> EmbeddingPipeline<'a>
Sourcepub fn new(model: &'a SemanticModel, db: &'a Connection) -> Result<Self>
pub fn new(model: &'a SemanticModel, db: &'a Connection) -> Result<Self>
Construct a pipeline and ensure semantic tables exist.
§Errors
Returns an error if the database schema creation fails.
Sourcepub fn embed_item(&self, item: &WorkItemFields) -> Result<bool>
pub fn embed_item(&self, item: &WorkItemFields) -> Result<bool>
Embed a single item and upsert its vector if content changed.
§Errors
Returns an error if inference or the database upsert fails.
Auto Trait Implementations§
impl<'a> Freeze for EmbeddingPipeline<'a>
impl<'a> !RefUnwindSafe for EmbeddingPipeline<'a>
impl<'a> !Send for EmbeddingPipeline<'a>
impl<'a> !Sync for EmbeddingPipeline<'a>
impl<'a> Unpin for EmbeddingPipeline<'a>
impl<'a> UnsafeUnpin for EmbeddingPipeline<'a>
impl<'a> !UnwindSafe for EmbeddingPipeline<'a>
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