pub struct ChunkMetadata {
pub position: ChunkPosition,
pub confidence: f32,
pub sentence_boundary_respected: bool,
pub language: Option<DetectedLanguage>,
}Expand description
Metadata for a document chunk
Fields§
§position: ChunkPositionPosition information about where this chunk appears in the document
confidence: f32Confidence score for text extraction quality (0.0-1.0) 1.0 = high confidence, 0.0 = low confidence
sentence_boundary_respected: boolWhether this chunk respects sentence boundaries
language: Option<DetectedLanguage>Detected language for this chunk, if language detection ran
(DocumentChunker::with_language_detection(true) + the
language-detection feature). None otherwise.
Trait Implementations§
Source§impl Clone for ChunkMetadata
impl Clone for ChunkMetadata
Source§fn clone(&self) -> ChunkMetadata
fn clone(&self) -> ChunkMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChunkMetadata
impl Debug for ChunkMetadata
Source§impl Default for ChunkMetadata
impl Default for ChunkMetadata
Source§fn default() -> ChunkMetadata
fn default() -> ChunkMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChunkMetadata
impl RefUnwindSafe for ChunkMetadata
impl Send for ChunkMetadata
impl Sync for ChunkMetadata
impl Unpin for ChunkMetadata
impl UnsafeUnpin for ChunkMetadata
impl UnwindSafe for ChunkMetadata
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