pub struct EmbeddingBatch {
pub records: Vec<EmbeddingRecord>,
pub batch_size: usize,
}Fields§
§records: Vec<EmbeddingRecord>§batch_size: usizeImplementations§
Source§impl EmbeddingBatch
impl EmbeddingBatch
pub fn new(records: Vec<EmbeddingRecord>) -> Self
pub fn with_batch_size(self, size: usize) -> Self
pub fn batch_chunks(&self) -> Vec<&[EmbeddingRecord]>
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