pub struct IngestBatchConfig {
pub extraction: GraphExtractionConfig,
pub dry_run: bool,
pub dry_run_hub_top_n: Option<usize>,
pub max_content_bytes: usize,
}Expand description
Configuration for SemanticMemory::ingest_documents.
Wraps the per-extraction GraphExtractionConfig and adds batch-level options.
Fields§
§extraction: GraphExtractionConfigPer-document extraction config. Quality gates, timeouts, and model settings.
The provenance and system_prompt fields are overwritten per document inside
ingest_documents — callers do not need to set them.
dry_run: boolWhen true, run LLM extraction but write nothing to the graph or the ledger.
The report will contain projected entity/edge counts and hub-degree distribution. This is the spec-067 FR-026 dry-run mode.
dry_run_hub_top_n: Option<usize>Number of top entities to include in the dry-run hub-degree report.
None defaults to 10.
max_content_bytes: usizeMaximum allowed content size in bytes for a single document.
Documents whose content exceeds this limit are rejected with
DocOutcome::Failed before any LLM call is made. This is a security
measure to prevent arbitrarily large payloads from reaching the provider.
Defaults to 512 KiB (512 * 1024).
Trait Implementations§
Source§impl Clone for IngestBatchConfig
impl Clone for IngestBatchConfig
Source§fn clone(&self) -> IngestBatchConfig
fn clone(&self) -> IngestBatchConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IngestBatchConfig
impl Debug for IngestBatchConfig
Auto Trait Implementations§
impl Freeze for IngestBatchConfig
impl RefUnwindSafe for IngestBatchConfig
impl Send for IngestBatchConfig
impl Sync for IngestBatchConfig
impl Unpin for IngestBatchConfig
impl UnsafeUnpin for IngestBatchConfig
impl UnwindSafe for IngestBatchConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request