pub struct EmbeddingStep { /* private fields */ }Expand description
Embedding generation step
Implementations§
Source§impl EmbeddingStep
impl EmbeddingStep
Sourcepub fn new(embedding_service: Arc<EmbeddingService>) -> Self
pub fn new(embedding_service: Arc<EmbeddingService>) -> Self
Create a new embedding generation step with the specified service
Trait Implementations§
Source§impl PipelineStep for EmbeddingStep
impl PipelineStep for EmbeddingStep
Source§fn description(&self) -> &str
fn description(&self) -> &str
Step description
Source§fn input_types(&self) -> Vec<&'static str>
fn input_types(&self) -> Vec<&'static str>
Input data types this step accepts
Source§fn output_type(&self) -> &'static str
fn output_type(&self) -> &'static str
Output data type this step produces
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
context: PipelineContext,
) -> Pin<Box<dyn Future<Output = RragResult<PipelineContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
context: PipelineContext,
) -> Pin<Box<dyn Future<Output = RragResult<PipelineContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the step
Source§fn validate_input(&self, _data: &PipelineData) -> RragResult<()>
fn validate_input(&self, _data: &PipelineData) -> RragResult<()>
Validate input data
Source§fn is_parallelizable(&self) -> bool
fn is_parallelizable(&self) -> bool
Whether this step can run in parallel with others
Source§fn dependencies(&self) -> Vec<&str>
fn dependencies(&self) -> Vec<&str>
Dependencies on other steps (step names)
Auto Trait Implementations§
impl Freeze for EmbeddingStep
impl !RefUnwindSafe for EmbeddingStep
impl Send for EmbeddingStep
impl Sync for EmbeddingStep
impl Unpin for EmbeddingStep
impl !UnwindSafe for EmbeddingStep
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