pub struct DocumentChunkingStep { /* private fields */ }Expand description
Document chunking step
Implementations§
Source§impl DocumentChunkingStep
impl DocumentChunkingStep
Sourcepub fn new(chunker: DocumentChunker) -> Self
pub fn new(chunker: DocumentChunker) -> Self
Create a new document chunking step with the specified chunker
Trait Implementations§
Source§impl PipelineStep for DocumentChunkingStep
impl PipelineStep for DocumentChunkingStep
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 DocumentChunkingStep
impl RefUnwindSafe for DocumentChunkingStep
impl Send for DocumentChunkingStep
impl Sync for DocumentChunkingStep
impl Unpin for DocumentChunkingStep
impl UnwindSafe for DocumentChunkingStep
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