pub enum IndexEvent {
Show 13 variants
RunStarted {
total_items: usize,
namespace: String,
source_label: String,
parallelism: usize,
started_at: DateTime<Utc>,
},
ItemStarted {
item_index: usize,
label: String,
size_bytes: Option<u64>,
},
ItemIndexed {
item_index: usize,
label: String,
chunks_indexed: usize,
duration_ms: u64,
embedder_ms: Option<u64>,
tokens_estimated: Option<usize>,
content_hash: Option<String>,
},
ItemSkipped {
item_index: usize,
label: String,
reason: String,
content_hash: Option<String>,
},
ItemFailed {
item_index: usize,
label: String,
error: String,
},
StatsTick {
processed: usize,
indexed: usize,
skipped: usize,
failed: usize,
total: usize,
items_per_sec: f64,
eta_secs: Option<f64>,
total_chunks: usize,
in_flight: usize,
},
RunCompleted {
processed: usize,
indexed: usize,
skipped: usize,
failed: usize,
total_chunks: usize,
elapsed: Duration,
stopped_early: bool,
},
RunFailed {
error: String,
processed_before_failure: usize,
},
Paused,
Resumed,
StopRequested,
ParallelismChanged {
previous: usize,
current: usize,
},
Warning {
code: String,
message: String,
},
}Expand description
Events emitted by the aicx indexing / embedding pipeline.
Items in aicx are intentionally generic: depending on the pipeline phase
an “item” may be a source entry (file/document), a chunk, or an
embedding batch. The event consumer interprets label as the
human-readable identifier for that item.
Variants§
RunStarted
Fields
ItemStarted
ItemIndexed
Fields
ItemSkipped
ItemFailed
StatsTick
Fields
RunCompleted
Fields
RunFailed
Paused
Resumed
StopRequested
ParallelismChanged
Warning
Trait Implementations§
Source§impl Clone for IndexEvent
impl Clone for IndexEvent
Source§fn clone(&self) -> IndexEvent
fn clone(&self) -> IndexEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexEvent
impl Debug for IndexEvent
Source§impl<'de> Deserialize<'de> for IndexEvent
impl<'de> Deserialize<'de> for IndexEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IndexEvent
impl PartialEq for IndexEvent
Source§fn eq(&self, other: &IndexEvent) -> bool
fn eq(&self, other: &IndexEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexEvent
impl Serialize for IndexEvent
impl StructuralPartialEq for IndexEvent
Auto Trait Implementations§
impl Freeze for IndexEvent
impl RefUnwindSafe for IndexEvent
impl Send for IndexEvent
impl Sync for IndexEvent
impl Unpin for IndexEvent
impl UnsafeUnpin for IndexEvent
impl UnwindSafe for IndexEvent
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