pub trait Embeddable: Send + Sync {
// Required methods
fn key(&self) -> &str;
fn content_hash(&self) -> String;
fn embed_text(&self) -> &str;
fn to_payload(&self) -> Value;
}Expand description
Trait implemented by domain types that can be stored in an EmbeddingRegistry.
Required Methods§
Sourcefn content_hash(&self) -> String
fn content_hash(&self) -> String
blake3 hex hash of all semantically relevant fields.
Sourcefn embed_text(&self) -> &str
fn embed_text(&self) -> &str
Text that will be embedded (e.g. description).
Sourcefn to_payload(&self) -> Value
fn to_payload(&self) -> Value
Full JSON payload to store in Qdrant. Must include a "key" field
equal to Self::key() so EmbeddingRegistry can recover it on scroll.