pub struct EmbeddingBatch {
pub session_id: Option<String>,
pub batch_id: u64,
pub embedding: Vec<f32>,
pub sequence_length: usize,
}Expand description
Batch of embeddings for projector and transformer components.
Fields§
§session_id: Option<String>Optional session ID for concurrent experiment isolation.
batch_id: u64Unique batch identifier for correlation.
embedding: Vec<f32>Embedding vector from compute processing.
sequence_length: usizeSequence length for transformer compatibility.
Trait Implementations§
Source§impl Clone for EmbeddingBatch
impl Clone for EmbeddingBatch
Source§impl Debug for EmbeddingBatch
impl Debug for EmbeddingBatch
Source§impl Default for EmbeddingBatch
impl Default for EmbeddingBatch
Source§impl<'de> Deserialize<'de> for EmbeddingBatch
impl<'de> Deserialize<'de> for EmbeddingBatch
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 EmbeddingBatch
impl PartialEq for EmbeddingBatch
Source§impl Serialize for EmbeddingBatch
impl Serialize for EmbeddingBatch
impl StructuralPartialEq for EmbeddingBatch
Source§impl Validate for EmbeddingBatch
impl Validate for EmbeddingBatch
Source§fn validate_with(&self, limits: ProtocolLimits) -> Result<(), ValidationError>
fn validate_with(&self, limits: ProtocolLimits) -> Result<(), ValidationError>
Validate against an explicit policy.
Source§fn validate(&self) -> Result<(), ValidationError>
fn validate(&self) -> Result<(), ValidationError>
Validate against
ProtocolLimits::DEFAULT.Auto Trait Implementations§
impl Freeze for EmbeddingBatch
impl RefUnwindSafe for EmbeddingBatch
impl Send for EmbeddingBatch
impl Sync for EmbeddingBatch
impl Unpin for EmbeddingBatch
impl UnsafeUnpin for EmbeddingBatch
impl UnwindSafe for EmbeddingBatch
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