pub struct VecInsert {
pub chunk_id: String,
pub embedding: Vec<f32>,
}Expand description
A vector embedding to attach to an existing chunk.
The chunk_id must reference a chunk already present in the database or
co-submitted in the same WriteRequest. The embedding is stored in the
vec_nodes_active virtual table when the sqlite-vec feature is enabled;
without the feature the insert is silently skipped.
Fields§
§chunk_id: String§embedding: Vec<f32>Trait Implementations§
impl StructuralPartialEq for VecInsert
Auto Trait Implementations§
impl Freeze for VecInsert
impl RefUnwindSafe for VecInsert
impl Send for VecInsert
impl Sync for VecInsert
impl Unpin for VecInsert
impl UnsafeUnpin for VecInsert
impl UnwindSafe for VecInsert
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