pub struct ChunkInput {
pub canonical_text: String,
pub source_uri: String,
pub byte_start: u64,
pub byte_end: u64,
pub embedding: Vec<f32>,
}Expand description
One chunk’s worth of input that the writer needs to produce a v1 file.
embedding must be a normalized f32 vector of the embedding dimension
declared in the manifest. The writer validates dimensions and rejects
NaN/Inf - callers do not get to pass garbage in.
Fields§
§canonical_text: String§source_uri: String§byte_start: u64§byte_end: u64§embedding: Vec<f32>Trait Implementations§
Source§impl Clone for ChunkInput
impl Clone for ChunkInput
Source§impl Debug for ChunkInput
impl Debug for ChunkInput
Source§impl PartialEq for ChunkInput
impl PartialEq for ChunkInput
impl StructuralPartialEq for ChunkInput
Auto Trait Implementations§
impl Freeze for ChunkInput
impl RefUnwindSafe for ChunkInput
impl Send for ChunkInput
impl Sync for ChunkInput
impl Unpin for ChunkInput
impl UnsafeUnpin for ChunkInput
impl UnwindSafe for ChunkInput
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