pub struct IncrementalEmbedResult {
pub embedded_count: usize,
pub skipped_count: usize,
pub replaced_count: usize,
pub total_chunks: usize,
pub model_name: String,
}Expand description
Result of an incremental embedding operation.
Fields§
§embedded_count: usizeNumber of new embeddings created.
skipped_count: usizeNumber of chunks that were skipped (already embedded with correct model).
replaced_count: usizeNumber of embeddings that were replaced (different model).
total_chunks: usizeTotal chunks in the buffer.
model_name: StringModel name used for embedding.
Implementations§
Source§impl IncrementalEmbedResult
impl IncrementalEmbedResult
Sourcepub const fn had_changes(&self) -> bool
pub const fn had_changes(&self) -> bool
Returns true if any embeddings were created or updated.
Sourcepub fn completion_percentage(&self) -> f64
pub fn completion_percentage(&self) -> f64
Returns the percentage of chunks now embedded.
Trait Implementations§
Source§impl Clone for IncrementalEmbedResult
impl Clone for IncrementalEmbedResult
Source§fn clone(&self) -> IncrementalEmbedResult
fn clone(&self) -> IncrementalEmbedResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IncrementalEmbedResult
impl RefUnwindSafe for IncrementalEmbedResult
impl Send for IncrementalEmbedResult
impl Sync for IncrementalEmbedResult
impl Unpin for IncrementalEmbedResult
impl UnwindSafe for IncrementalEmbedResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more