pub struct SearchAgent { /* private fields */ }Expand description
搜索 Agent:自动回溯的多轮搜索策略
优先执行 FTS5(<50ms)→ 结果不足时自动启动语义搜索(~200ms) → 需要精确定位时 AST 查询(~100ms)。 各级结果经 RRF 合并后返回;若提供了调用链索引,还会对命中结果 做调用者/被调用者补全。
Implementations§
Source§impl SearchAgent
impl SearchAgent
pub fn new( text: TextEngine, semantic: Option<Box<dyn SemanticSearch>>, rrf_k: f64, ) -> Self
Auto Trait Implementations§
impl !Freeze for SearchAgent
impl !RefUnwindSafe for SearchAgent
impl !Send for SearchAgent
impl !Sync for SearchAgent
impl !UnwindSafe for SearchAgent
impl Unpin for SearchAgent
impl UnsafeUnpin for SearchAgent
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> 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