pub struct IngestArgs {Show 27 fields
pub dir: PathBuf,
pub type: MemoryType,
pub pattern: String,
pub recursive: bool,
pub enable_ner: bool,
pub gliner_variant: String,
pub skip_extraction: bool,
pub fail_fast: bool,
pub dry_run: bool,
pub max_files: usize,
pub namespace: Option<String>,
pub db: Option<String>,
pub format: JsonOutputFormat,
pub json: bool,
pub ingest_parallelism: Option<usize>,
pub low_memory: bool,
pub max_rss_mb: u64,
pub max_name_length: usize,
pub mode: IngestMode,
pub claude_binary: Option<PathBuf>,
pub claude_model: Option<String>,
pub resume: bool,
pub retry_failed: bool,
pub keep_queue: bool,
pub queue_db: String,
pub rate_limit_wait: u64,
pub max_cost_usd: Option<f64>,
}Fields§
§dir: PathBufDirectory containing files to ingest.
type: MemoryTypeMemory type stored in memories.type for every ingested file. Defaults to document.
pattern: StringGlob pattern matched against file basenames (default: *.md). Supports
*.<ext>, <prefix>*, and exact filename match.
recursive: boolRecurse into subdirectories.
enable_ner: bool§gliner_variant: String§skip_extraction: boolDeprecated: NER is now disabled by default. Kept for backwards compatibility.
fail_fast: boolStop on first per-file error instead of continuing with the next file.
dry_run: boolPreview file-to-name mapping without loading model or persisting.
max_files: usizeMaximum number of files to ingest (safety cap to prevent runaway ingestion).
namespace: Option<String>Namespace for the ingested memories.
db: Option<String>Database path. Falls back to SQLITE_GRAPHRAG_DB_PATH, then ./graphrag.sqlite.
format: JsonOutputFormat§json: bool§ingest_parallelism: Option<usize>Number of files to extract+embed in parallel; default = max(1, cpus/2).min(4).
low_memory: boolForce single-threaded ingest to reduce RSS pressure.
Equivalent to --ingest-parallelism 1, takes precedence over any
explicit value. Recommended for environments with <4 GB available
RAM or container/cgroup constraints. Trade-off: 3-4x longer wall
time. Also honored via SQLITE_GRAPHRAG_LOW_MEMORY=1 env var
(CLI flag has higher precedence than the env var).
max_rss_mb: u64Maximum process RSS in MiB; abort if exceeded during embedding.
max_name_length: usizeMaximum character length for derived memory names from file basenames.
Overrides the compile-time DERIVED_NAME_MAX_LEN constant (default 60).
Shorter values leave more headroom for collision suffix resolution.
mode: IngestModeExtraction mode: none (body-only, default), gliner (NER), or claude-code (LLM-curated via Claude Code CLI).
claude_binary: Option<PathBuf>Explicit path to the Claude Code binary (only with –mode claude-code).
claude_model: Option<String>Model override for Claude Code extraction (e.g. claude-sonnet-4-6).
resume: boolResume a previously interrupted claude-code ingest from the queue DB.
retry_failed: boolRetry only failed files from a previous claude-code ingest.
keep_queue: boolKeep the queue DB (.ingest-queue.sqlite) after completion.
queue_db: StringCustom path for the claude-code ingest queue database.
rate_limit_wait: u64Initial wait time in seconds when rate-limited (only with –mode claude-code).
max_cost_usd: Option<f64>Maximum cumulative cost in USD before aborting (only with –mode claude-code).
Trait Implementations§
Source§impl Args for IngestArgs
impl Args for IngestArgs
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 IngestArgs
impl FromArgMatches for IngestArgs
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 IngestArgs
impl RefUnwindSafe for IngestArgs
impl Send for IngestArgs
impl Sync for IngestArgs
impl Unpin for IngestArgs
impl UnsafeUnpin for IngestArgs
impl UnwindSafe for IngestArgs
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