Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
    Ingest {
        input: Vec<PathBuf>,
        engram: PathBuf,
        manifest: PathBuf,
        verbose: bool,
    },
    Extract {
        engram: PathBuf,
        manifest: PathBuf,
        output_dir: PathBuf,
        verbose: bool,
    },
    Query {
        engram: PathBuf,
        query: PathBuf,
        hierarchical_manifest: Option<PathBuf>,
        sub_engrams_dir: Option<PathBuf>,
        k: usize,
        verbose: bool,
    },
    QueryText {
        engram: PathBuf,
        text: String,
        hierarchical_manifest: Option<PathBuf>,
        sub_engrams_dir: Option<PathBuf>,
        k: usize,
        verbose: bool,
    },
    BundleHier {
        engram: PathBuf,
        manifest: PathBuf,
        out_hierarchical_manifest: PathBuf,
        out_sub_engrams_dir: PathBuf,
        max_level_sparsity: usize,
        max_chunks_per_node: Option<usize>,
        embed_sub_engrams: bool,
        verbose: bool,
    },
    Update(UpdateCommands),
}

Variants§

§

Ingest

Ingest files/directories into a holographic engram

Fields

§input: Vec<PathBuf>

Input path(s) to ingest (directory or file). Can be provided multiple times.

§engram: PathBuf

Output engram file containing holographic encoding

§manifest: PathBuf

Output manifest file containing file metadata and chunk mappings

§verbose: bool

Enable verbose output showing ingestion progress and statistics

§

Extract

Extract and reconstruct files from a holographic engram

Fields

§engram: PathBuf

Input engram file to extract from

§manifest: PathBuf

Input manifest file with metadata and chunk mappings

§output_dir: PathBuf

Output directory where files will be reconstructed

§verbose: bool

Enable verbose output showing extraction progress

§

Query

Query similarity between a file and engram contents

Fields

§engram: PathBuf

Engram file to query

§query: PathBuf

Query file to search for

§hierarchical_manifest: Option<PathBuf>

Optional hierarchical manifest (enables selective unfolding search)

§sub_engrams_dir: Option<PathBuf>

Directory containing bincode-serialized sub-engrams (used with –hierarchical-manifest)

§k: usize

Top-k results to print for codebook/hierarchical search

§verbose: bool

Enable verbose output showing similarity scores and details

§

QueryText

Query similarity using a literal text string (basic inference-to-vector)

Fields

§engram: PathBuf

Engram file to query

§text: String

Text to encode and search for

§hierarchical_manifest: Option<PathBuf>

Optional hierarchical manifest (enables selective unfolding search)

§sub_engrams_dir: Option<PathBuf>

Directory containing bincode-serialized sub-engrams (used with –hierarchical-manifest)

§k: usize

Top-k results to print for codebook/hierarchical search

§verbose: bool

Enable verbose output showing similarity scores and details

§

BundleHier

Build hierarchical retrieval artifacts (manifest + sub-engrams store)

Fields

§engram: PathBuf

Input engram file

§manifest: PathBuf

Input manifest file

§out_hierarchical_manifest: PathBuf

Output hierarchical manifest JSON

§out_sub_engrams_dir: PathBuf

Output directory to write bincode sub-engrams

§max_level_sparsity: usize

Maximum sparsity per level bundle

§max_chunks_per_node: Option<usize>

Optional cap on chunk IDs per node (enables deterministic sharding when exceeded)

§embed_sub_engrams: bool

Embed sub-engrams in the manifest JSON (in addition to writing the directory)

§verbose: bool

Enable verbose output

§

Update(UpdateCommands)

Incremental update operations (add/remove/modify files)

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V