pub struct DeepResearchArgs {Show 17 fields
pub query: String,
pub k: usize,
pub max_sub_queries: usize,
pub max_hops: usize,
pub min_weight: f64,
pub max_concurrency: Option<usize>,
pub timeout: u64,
pub with_bodies: bool,
pub max_results: usize,
pub rrf_k: f64,
pub graph_decay: f64,
pub graph_min_score: f64,
pub max_neighbors_per_hop: Option<usize>,
pub namespace: Option<String>,
pub json: bool,
pub db: Option<String>,
pub daemon: DaemonOpts,
}Expand description
Arguments for the deep-research subcommand.
Fields§
§query: StringResearch query to decompose and search.
k: usizeResults per sub-query (Recall@20 captures 95%+ relevant hits).
max_sub_queries: usizeMaximum sub-queries from decomposition (covers complex multi-hop queries).
max_hops: usizeMulti-hop graph traversal depth (sweet spot: 2-3 hops).
min_weight: f64Minimum edge weight for graph traversal.
max_concurrency: Option<usize>Maximum concurrent sub-queries (default: min(cpus, 8)).
timeout: u64Timeout per sub-query in seconds.
with_bodies: boolInclude full memory bodies in results.
max_results: usizeMaximum results after deduplication.
rrf_k: f64RRF k parameter controlling score smoothing (higher = less weight on top ranks).
graph_decay: f64Decay factor applied to graph scores per hop (score = seed_score * decay^hop).
graph_min_score: f64Minimum score threshold for graph-expanded results (filters noise).
max_neighbors_per_hop: Option<usize>Limit top-k neighbours followed per entity per hop (None = unlimited).
namespace: Option<String>Namespace (env: SQLITE_GRAPHRAG_NAMESPACE, default: global).
json: boolJSON output (always on, kept for consistency).
db: Option<String>Database path.
daemon: DaemonOptsTrait Implementations§
Source§impl Args for DeepResearchArgs
impl Args for DeepResearchArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for DeepResearchArgs
impl FromArgMatches for DeepResearchArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for DeepResearchArgs
impl RefUnwindSafe for DeepResearchArgs
impl Send for DeepResearchArgs
impl Sync for DeepResearchArgs
impl Unpin for DeepResearchArgs
impl UnsafeUnpin for DeepResearchArgs
impl UnwindSafe for DeepResearchArgs
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
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>
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>
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