pub struct ClassicalBackend { /* private fields */ }Expand description
Classical substrate backend using ruvector
This backend wraps ruvector-core for vector operations and ruvector-graph for hypergraph operations, providing a classical (discrete) implementation of the substrate backend trait.
Implementations§
Source§impl ClassicalBackend
impl ClassicalBackend
Sourcepub fn new(config: ClassicalConfig) -> ExoResult<Self>
pub fn new(config: ClassicalConfig) -> ExoResult<Self>
Create a new classical backend with the given configuration
Sourcepub fn with_dimensions(dimensions: usize) -> ExoResult<Self>
pub fn with_dimensions(dimensions: usize) -> ExoResult<Self>
Create with default configuration
Sourcepub fn graph_db(&self) -> Arc<RwLock<GraphWrapper>>
pub fn graph_db(&self) -> Arc<RwLock<GraphWrapper>>
Get access to the underlying graph database (for hyperedge operations)
Trait Implementations§
Source§impl SubstrateBackend for ClassicalBackend
impl SubstrateBackend for ClassicalBackend
Source§fn similarity_search(
&self,
query: &[f32],
k: usize,
filter: Option<&Filter>,
) -> ExoResult<Vec<SearchResult>>
fn similarity_search( &self, query: &[f32], k: usize, filter: Option<&Filter>, ) -> ExoResult<Vec<SearchResult>>
Execute similarity search on substrate
Source§fn manifold_deform(
&self,
pattern: &Pattern,
_learning_rate: f32,
) -> ExoResult<ManifoldDelta>
fn manifold_deform( &self, pattern: &Pattern, _learning_rate: f32, ) -> ExoResult<ManifoldDelta>
Deform manifold to incorporate new pattern
Auto Trait Implementations§
impl Freeze for ClassicalBackend
impl !RefUnwindSafe for ClassicalBackend
impl Send for ClassicalBackend
impl Sync for ClassicalBackend
impl Unpin for ClassicalBackend
impl !UnwindSafe for ClassicalBackend
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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