pub struct IngestArgs {Show 13 fields
pub dir: PathBuf,
pub type: MemoryType,
pub pattern: String,
pub recursive: bool,
pub skip_extraction: bool,
pub fail_fast: 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,
}Fields§
§dir: PathBufDirectory containing files to ingest.
type: MemoryTypeMemory type stored in memories.type for every ingested file.
pattern: StringGlob pattern matched against file basenames (default: *.md). Supports
*.<ext>, <prefix>*, and exact filename match.
recursive: boolRecurse into subdirectories.
skip_extraction: boolDisable automatic BERT NER entity/relationship extraction (faster bulk import).
fail_fast: boolStop on first per-file error instead of continuing with the next file.
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).
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