pub struct RealTimeEmbeddingPipeline { /* private fields */ }
Expand description
Real-time embedding pipeline for streaming updates
Implementations§
Source§impl RealTimeEmbeddingPipeline
impl RealTimeEmbeddingPipeline
Sourcepub fn new(config: PipelineConfig) -> PipelineResult<Self>
pub fn new(config: PipelineConfig) -> PipelineResult<Self>
Create a new real-time embedding pipeline
Sourcepub async fn start(&self) -> PipelineResult<()>
pub async fn start(&self) -> PipelineResult<()>
Start the pipeline
Sourcepub async fn stop(&self) -> PipelineResult<()>
pub async fn stop(&self) -> PipelineResult<()>
Stop the pipeline
Sourcepub fn add_embedding_generator(
&self,
name: String,
generator: Box<dyn EmbeddingGenerator>,
) -> PipelineResult<()>
pub fn add_embedding_generator( &self, name: String, generator: Box<dyn EmbeddingGenerator>, ) -> PipelineResult<()>
Add an embedding generator
Sourcepub fn add_vector_index(
&self,
name: String,
index: Box<dyn IncrementalVectorIndex>,
) -> PipelineResult<()>
pub fn add_vector_index( &self, name: String, index: Box<dyn IncrementalVectorIndex>, ) -> PipelineResult<()>
Add a vector index
Sourcepub async fn create_stream(
&self,
config: StreamConfig,
) -> PipelineResult<String>
pub async fn create_stream( &self, config: StreamConfig, ) -> PipelineResult<String>
Create a new stream processor
Sourcepub async fn remove_stream(&self, stream_id: &str) -> PipelineResult<()>
pub async fn remove_stream(&self, stream_id: &str) -> PipelineResult<()>
Remove a stream processor
Sourcepub fn get_statistics(&self) -> Arc<PipelineStatistics>
pub fn get_statistics(&self) -> Arc<PipelineStatistics>
Get pipeline statistics
Sourcepub async fn health_check(&self) -> PipelineResult<HealthCheckResult>
pub async fn health_check(&self) -> PipelineResult<HealthCheckResult>
Get pipeline health status
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if the pipeline is running
Sourcepub fn get_config(&self) -> &PipelineConfig
pub fn get_config(&self) -> &PipelineConfig
Get pipeline configuration
Sourcepub async fn update_config(
&mut self,
new_config: PipelineConfig,
) -> PipelineResult<()>
pub async fn update_config( &mut self, new_config: PipelineConfig, ) -> PipelineResult<()>
Update pipeline configuration (for some settings)
Sourcepub fn list_embedding_generators(&self) -> PipelineResult<Vec<String>>
pub fn list_embedding_generators(&self) -> PipelineResult<Vec<String>>
Get list of available embedding generators
Sourcepub fn list_vector_indices(&self) -> PipelineResult<Vec<String>>
pub fn list_vector_indices(&self) -> PipelineResult<Vec<String>>
Get list of available vector indices
Sourcepub fn list_streams(&self) -> PipelineResult<Vec<String>>
pub fn list_streams(&self) -> PipelineResult<Vec<String>>
Get list of active streams
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RealTimeEmbeddingPipeline
impl RefUnwindSafe for RealTimeEmbeddingPipeline
impl Send for RealTimeEmbeddingPipeline
impl Sync for RealTimeEmbeddingPipeline
impl Unpin for RealTimeEmbeddingPipeline
impl UnwindSafe for RealTimeEmbeddingPipeline
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.