pub struct SemanticMemoryBenchmark { /* private fields */ }Expand description
SemanticMemoryBenchmark measures search quality degradation from compression.
Implementations§
Source§impl SemanticMemoryBenchmark
impl SemanticMemoryBenchmark
Sourcepub fn with_config(config: SemanticMemoryConfig) -> Self
pub fn with_config(config: SemanticMemoryConfig) -> Self
Create a new benchmark with custom configuration.
Sourcepub fn config(&self) -> &SemanticMemoryConfig
pub fn config(&self) -> &SemanticMemoryConfig
Get the current configuration.
Sourcepub fn run(&self) -> Result<SemanticMemoryResult, QuantEvalError>
pub fn run(&self) -> Result<SemanticMemoryResult, QuantEvalError>
Run the semantic memory benchmark comparing compressed vs raw search.
Trait Implementations§
Source§impl Clone for SemanticMemoryBenchmark
impl Clone for SemanticMemoryBenchmark
Source§fn clone(&self) -> SemanticMemoryBenchmark
fn clone(&self) -> SemanticMemoryBenchmark
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticMemoryBenchmark
impl Debug for SemanticMemoryBenchmark
Auto Trait Implementations§
impl Freeze for SemanticMemoryBenchmark
impl RefUnwindSafe for SemanticMemoryBenchmark
impl Send for SemanticMemoryBenchmark
impl Sync for SemanticMemoryBenchmark
impl Unpin for SemanticMemoryBenchmark
impl UnsafeUnpin for SemanticMemoryBenchmark
impl UnwindSafe for SemanticMemoryBenchmark
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