pub struct HybridSearchArgs {Show 14 fields
pub query: String,
pub k: usize,
pub rrf_k: u32,
pub weight_vec: f32,
pub weight_fts: f32,
pub type: Option<MemoryType>,
pub namespace: Option<String>,
pub with_graph: bool,
pub max_hops: u32,
pub min_weight: f64,
pub format: JsonOutputFormat,
pub db: Option<String>,
pub json: bool,
pub daemon: DaemonOpts,
}Expand description
Arguments for the hybrid-search subcommand.
When --namespace is omitted the search runs against the global namespace,
which is the default namespace used by remember when no --namespace flag
is provided. Pass an explicit --namespace value to search a different
isolated namespace.
Fields§
§query: String§k: usizeMaximum number of fused results to return after RRF combines vector + FTS5 candidates.
Validated to the inclusive range 1..=4096 (the upper bound matches sqlite-vec’s knn
limit). Each underlying search fetches k * 2 candidates before fusion.
rrf_k: u32§weight_vec: f32§weight_fts: f32§type: Option<MemoryType>Filter by memory.type. Note: distinct from graph entity_type (project/tool/person/file/concept/incident/decision/memory/dashboard/issue_tracker/organization/location/date) used in –entities-file.
namespace: Option<String>§with_graph: bool§max_hops: u32§min_weight: f64§format: JsonOutputFormat§db: Option<String>§json: boolAccept --json as a no-op because output is already JSON by default.
daemon: DaemonOptsTrait Implementations§
Source§impl Args for HybridSearchArgs
impl Args for HybridSearchArgs
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 HybridSearchArgs
impl FromArgMatches for HybridSearchArgs
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 HybridSearchArgs
impl RefUnwindSafe for HybridSearchArgs
impl Send for HybridSearchArgs
impl Sync for HybridSearchArgs
impl Unpin for HybridSearchArgs
impl UnsafeUnpin for HybridSearchArgs
impl UnwindSafe for HybridSearchArgs
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