pub struct IngestArgs {
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,
}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: boolTrait 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
Append to
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>
Assign values from
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>
Assign values from
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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