pub struct EmbeddingRepository<'a> { /* private fields */ }Implementations§
Source§impl<'a> EmbeddingRepository<'a>
impl<'a> EmbeddingRepository<'a>
pub fn new(catalog: &'a Catalog) -> Self
Sourcepub fn upsert(&self, new: &NewEmbedding) -> OrbokResult<()>
pub fn upsert(&self, new: &NewEmbedding) -> OrbokResult<()>
Insert or replace the embedding for a chunk+model pair.
Sourcepub fn list_active_for_scan(
&self,
model_id: &str,
dimension: u32,
) -> OrbokResult<Vec<EmbeddingRecord>>
pub fn list_active_for_scan( &self, model_id: &str, dimension: u32, ) -> OrbokResult<Vec<EmbeddingRecord>>
All active embeddings for exact cosine-similarity scan. Only returns embeddings for active chunks (RFC-008 §20 stale exclusion). Vectors are not logged.
Sourcepub fn mark_stale_for_model(&self, model_id: &str) -> OrbokResult<u64>
pub fn mark_stale_for_model(&self, model_id: &str) -> OrbokResult<u64>
Mark embeddings stale when the model version changes (RFC-008 §16).
Sourcepub fn count_active(&self, model_id: &str) -> OrbokResult<u64>
pub fn count_active(&self, model_id: &str) -> OrbokResult<u64>
Count semantically active embeddings (embedding active AND chunk active).
Auto Trait Implementations§
impl<'a> Freeze for EmbeddingRepository<'a>
impl<'a> RefUnwindSafe for EmbeddingRepository<'a>
impl<'a> Send for EmbeddingRepository<'a>
impl<'a> Sync for EmbeddingRepository<'a>
impl<'a> Unpin for EmbeddingRepository<'a>
impl<'a> UnsafeUnpin for EmbeddingRepository<'a>
impl<'a> UnwindSafe for EmbeddingRepository<'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