pub struct PipelineExecutor<'a> { /* private fields */ }Expand description
Composable pipeline executor
Wraps a GraphRAG instance and provides fine-grained control over
the build pipeline phases.
Implementations§
Source§impl<'a> PipelineExecutor<'a>
impl<'a> PipelineExecutor<'a>
Sourcepub fn new(graphrag: &'a mut GraphRAG) -> Self
pub fn new(graphrag: &'a mut GraphRAG) -> Self
Create a new pipeline executor wrapping the given GraphRAG instance
Sourcepub async fn run_full_pipeline(&mut self) -> Result<PipelineReport>
pub async fn run_full_pipeline(&mut self) -> Result<PipelineReport>
Run the full pipeline (entity extraction → relationships → communities → summarization)
This is equivalent to calling GraphRAG::build_graph() but returns a detailed report.
Sourcepub async fn ingest_and_build(&mut self, text: &str) -> Result<PipelineReport>
pub async fn ingest_and_build(&mut self, text: &str) -> Result<PipelineReport>
Add a document from text and run the full pipeline in one call
Sourcepub fn current_state(&self) -> PipelineReport
pub fn current_state(&self) -> PipelineReport
Get a snapshot report of the current graph state without running any pipeline
Auto Trait Implementations§
impl<'a> Freeze for PipelineExecutor<'a>
impl<'a> !RefUnwindSafe for PipelineExecutor<'a>
impl<'a> Send for PipelineExecutor<'a>
impl<'a> Sync for PipelineExecutor<'a>
impl<'a> Unpin for PipelineExecutor<'a>
impl<'a> UnsafeUnpin for PipelineExecutor<'a>
impl<'a> !UnwindSafe for PipelineExecutor<'a>
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