pub enum EmbedderEvent {
DefaultEmbedderDownload {
file: String,
url: String,
bytes: u64,
sha256: String,
cache_path: PathBuf,
duration_ms: u64,
},
DefaultEmbedderCacheHit {
file: String,
sha256: String,
cache_path: PathBuf,
},
MeanVecPinned {
dim: u32,
doc_count: u64,
},
MeanVecRecomputed {
dim: u32,
doc_count: u64,
trigger: MeanRecomputeTrigger,
},
}Expand description
Structured event surfaced through OpenReport.embedder_events
(dev/design/embedder.md §7).
Defined unconditionally at the crate root so the engine can reference
it regardless of the default-embedder feature; the loader (under
default-embedder) emits these variants and re-exports the enum for
ergonomic in-module use.
Variants§
DefaultEmbedderDownload
A file was fetched from the network and written to the cache.
DefaultEmbedderCacheHit
A file was found in the cache and verified by sha256. No network.
MeanVecPinned
EU-5a2 — emitted at the commit that materializes the per-workspace
mean vector into _fathomdb_embedder_profiles.mean_vec. dim
matches the default embedder identity’s dimension; doc_count is
the number of pre-pin rows the same transaction’s re-quantize
pass updated (per dev/design/embedder.md §0.5, §7).
EU-5a2’s only live identity is NoopEmbedder, which does NOT request mean-centering, so this event is dormant until EU-5b flips the default identity. Defined now so EU-5b is a no-op addition to this enum.
MeanVecRecomputed
0.7.2 PR-2b — emitted after the transaction that REFRESHES an
already-pinned mean_vec is durable. dim is the embedder
identity dimension; doc_count is the number of rows the
re-quantize pass re-centered; trigger records what drove the
refresh. As of 0.7.2 PR-2bc the only trigger is the explicit
doctor recompute-mean verb (Manual); the automatic in-ingest
drift detector was carved out and deferred to 0.8.x. See
dev/design/embedder.md §0.3/§0.5 and
dev/design/embedder-decision.md §3.4.
Trait Implementations§
Source§impl Clone for EmbedderEvent
impl Clone for EmbedderEvent
Source§fn clone(&self) -> EmbedderEvent
fn clone(&self) -> EmbedderEvent
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 EmbedderEvent
impl Debug for EmbedderEvent
Source§impl PartialEq for EmbedderEvent
impl PartialEq for EmbedderEvent
Source§fn eq(&self, other: &EmbedderEvent) -> bool
fn eq(&self, other: &EmbedderEvent) -> bool
self and other values to be equal, and is used by ==.