pub struct RetrievalPlan {
pub logical: LogicalPlan,
pub stats: PlannerStats,
pub eligible_documents: usize,
pub filter: FilterStrategy,
pub stages: Vec<PlanStage>,
pub estimate: PlanEstimate,
pub policy: Option<PolicyPlan>,
}Fields§
§logical: LogicalPlan§stats: PlannerStats§eligible_documents: usize§filter: FilterStrategy§stages: Vec<PlanStage>§estimate: PlanEstimate§policy: Option<PolicyPlan>Set when planning_mode != Manual; contains the auto-generated channel list.
Implementations§
Source§impl RetrievalPlan
impl RetrievalPlan
Sourcepub fn parallel_channels(&self) -> &[PlannedChannel]
pub fn parallel_channels(&self) -> &[PlannedChannel]
Returns the PlannedChannel slice from the first Parallel stage.
Sourcepub fn fusion_operator(&self) -> Option<FusionOperator>
pub fn fusion_operator(&self) -> Option<FusionOperator>
Returns the fusion operator from the plan, if present.
Sourcepub fn rerank_plan(&self) -> Option<&RerankPlan>
pub fn rerank_plan(&self) -> Option<&RerankPlan>
Returns the rerank plan, if present.
Sourcepub fn context_plan(&self) -> Option<&ContextPlan>
pub fn context_plan(&self) -> Option<&ContextPlan>
Returns the context plan.
Trait Implementations§
Source§impl Clone for RetrievalPlan
impl Clone for RetrievalPlan
Source§impl Debug for RetrievalPlan
impl Debug for RetrievalPlan
Source§impl PartialEq for RetrievalPlan
impl PartialEq for RetrievalPlan
Source§impl Serialize for RetrievalPlan
impl Serialize for RetrievalPlan
impl StructuralPartialEq for RetrievalPlan
Auto Trait Implementations§
impl Freeze for RetrievalPlan
impl RefUnwindSafe for RetrievalPlan
impl Send for RetrievalPlan
impl Sync for RetrievalPlan
impl Unpin for RetrievalPlan
impl UnsafeUnpin for RetrievalPlan
impl UnwindSafe for RetrievalPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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