pub struct MemoryDb { /* private fields */ }Implementations§
Source§impl MemoryDb
impl MemoryDb
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn remember(&mut self, input: RememberInput) -> Result<Remembered>
pub fn remember_with_locator( &mut self, input: RememberInput, locator: Option<TranscriptLocator>, ) -> Result<Remembered>
pub fn evidence_locator( &self, input: EvidenceLocatorInput, ) -> Result<Option<TranscriptLocator>>
pub fn search(&self, input: SearchInput) -> Result<RetrievalPack>
pub fn get(&self, input: GetInput) -> Result<RetrievalItem>
pub fn correct(&mut self, input: CorrectInput) -> Result<Corrected>
pub fn delete_source(&mut self, input: DeleteInput) -> Result<Deleted>
pub fn store_review(&mut self, input: ReviewInput) -> Result<StoredReview>
pub fn reviews(&self, input: ReviewsInput) -> Result<Vec<ReviewRecord>>
pub fn rebuild_embedding<E: Embedder>( &mut self, tenant_id: TenantId, person_id: PersonId, target: EmbeddingTarget, embedder: &E, ) -> Result<StoredEmbedding>
pub fn upsert_embedding( &mut self, input: EmbeddingInput, ) -> Result<StoredEmbedding>
pub fn projection_input( &self, tenant_id: &TenantId, person_id: &PersonId, target: EmbeddingTarget, ) -> Result<ProjectionInput>
pub fn projection_issues( &self, input: ProjectionAuditInput, ) -> Result<Vec<ProjectionIssue>>
Auto Trait Implementations§
impl !Freeze for MemoryDb
impl !RefUnwindSafe for MemoryDb
impl !Sync for MemoryDb
impl !UnwindSafe for MemoryDb
impl Send for MemoryDb
impl Unpin for MemoryDb
impl UnsafeUnpin for MemoryDb
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