pub struct RetrievalStep { /* private fields */ }Expand description
Retrieval step for similarity search
Implementations§
Source§impl RetrievalStep
impl RetrievalStep
Sourcepub fn new(retrieval_service: Arc<RetrievalService>) -> Self
pub fn new(retrieval_service: Arc<RetrievalService>) -> Self
Create a new retrieval step with default configuration
Sourcepub fn with_config(
retrieval_service: Arc<RetrievalService>,
config: SearchStepConfig,
) -> Self
pub fn with_config( retrieval_service: Arc<RetrievalService>, config: SearchStepConfig, ) -> Self
Create a new retrieval step with custom configuration
Trait Implementations§
Source§impl PipelineStep for RetrievalStep
impl PipelineStep for RetrievalStep
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 RetrievalStep
impl !RefUnwindSafe for RetrievalStep
impl Send for RetrievalStep
impl Sync for RetrievalStep
impl Unpin for RetrievalStep
impl !UnwindSafe for RetrievalStep
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