pub struct EmbedUseCase<S: GraphStore, E: EmbeddingProvider, V: VectorStore> { /* private fields */ }Implementations§
Source§impl<S: GraphStore, E: EmbeddingProvider, V: VectorStore> EmbedUseCase<S, E, V>
impl<S: GraphStore, E: EmbeddingProvider, V: VectorStore> EmbedUseCase<S, E, V>
pub fn new(store: S, provider: E, vector_store: V) -> Self
Sourcepub fn embed_all(
&self,
config: &EmbeddingConfig,
on_batch: impl Fn(usize, usize),
) -> Result<EmbedStats>
pub fn embed_all( &self, config: &EmbeddingConfig, on_batch: impl Fn(usize, usize), ) -> Result<EmbedStats>
Embed all symbols, skipping those whose text representation is unchanged.
Calls on_batch(embedded_so_far, total_to_embed) after each batch.
Sourcepub fn cleanup_orphans(&self) -> Result<usize>
pub fn cleanup_orphans(&self) -> Result<usize>
Remove embeddings whose qualified name no longer exists in the graph.
Auto Trait Implementations§
impl<S, E, V> Freeze for EmbedUseCase<S, E, V>
impl<S, E, V> RefUnwindSafe for EmbedUseCase<S, E, V>
impl<S, E, V> Send for EmbedUseCase<S, E, V>
impl<S, E, V> Sync for EmbedUseCase<S, E, V>
impl<S, E, V> Unpin for EmbedUseCase<S, E, V>
impl<S, E, V> UnsafeUnpin for EmbedUseCase<S, E, V>
impl<S, E, V> UnwindSafe for EmbedUseCase<S, E, V>
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