pub struct EmbeddingDescriptor {
pub modality: Modality,
pub source_content_id: String,
pub part_id: Option<String>,
pub temporal_span: Option<TemporalSpan>,
pub location: EmbeddingLocation,
pub metadata: HashMap<String, String>,
}Expand description
Descriptor connecting a modality-specific vector to source content.
Fields§
§modality: ModalityModality this vector represents.
source_content_id: StringLogical source content ID (entry/chunk/asset identifier).
part_id: Option<String>Source sub-part identifier (e.g., block/chunk/frame/segment).
temporal_span: Option<TemporalSpan>Optional time span for audio/video-derived vectors.
location: EmbeddingLocationWhere the vector is stored.
metadata: HashMap<String, String>Additional modality-specific metadata.
Implementations§
Source§impl EmbeddingDescriptor
impl EmbeddingDescriptor
Sourcepub fn new(
modality: Modality,
source_content_id: impl Into<String>,
location: EmbeddingLocation,
) -> Self
pub fn new( modality: Modality, source_content_id: impl Into<String>, location: EmbeddingLocation, ) -> Self
Create a new embedding descriptor.
Sourcepub fn with_part_id(self, part_id: impl Into<String>) -> Self
pub fn with_part_id(self, part_id: impl Into<String>) -> Self
Set the source part ID.
Sourcepub fn with_temporal_span(self, temporal_span: TemporalSpan) -> Self
pub fn with_temporal_span(self, temporal_span: TemporalSpan) -> Self
Set the temporal span.
Sourcepub fn descriptor_key(&self) -> String
pub fn descriptor_key(&self) -> String
Deterministic key for upsert/idempotent indexing.
Trait Implementations§
Source§impl Clone for EmbeddingDescriptor
impl Clone for EmbeddingDescriptor
Source§fn clone(&self) -> EmbeddingDescriptor
fn clone(&self) -> EmbeddingDescriptor
Returns a duplicate of the value. Read more
1.0.0 · 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 EmbeddingDescriptor
impl Debug for EmbeddingDescriptor
Source§impl<'de> Deserialize<'de> for EmbeddingDescriptor
impl<'de> Deserialize<'de> for EmbeddingDescriptor
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 EmbeddingDescriptor
impl PartialEq for EmbeddingDescriptor
Source§impl Serialize for EmbeddingDescriptor
impl Serialize for EmbeddingDescriptor
impl Eq for EmbeddingDescriptor
impl StructuralPartialEq for EmbeddingDescriptor
Auto Trait Implementations§
impl Freeze for EmbeddingDescriptor
impl RefUnwindSafe for EmbeddingDescriptor
impl Send for EmbeddingDescriptor
impl Sync for EmbeddingDescriptor
impl Unpin for EmbeddingDescriptor
impl UnsafeUnpin for EmbeddingDescriptor
impl UnwindSafe for EmbeddingDescriptor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request