pub enum TableFormat {
Triplet,
Markdown,
}Expand description
How a chunk prints a table — the table serializer docling’s
ChunkingDocSerializer is given (docling-serve’s
chunking_use_markdown_tables, #1269).
Variants§
Triplet
TripletTableSerializer: row, column = value sentences — docling’s
default, what embedders read best.
Markdown
MarkdownTableSerializer: the table as the Markdown export prints it
(a padded GitHub pipe table), so a chunk keeps the rows and columns.
HybridChunker splits an oversized one repeating the header row on
every piece, and cuts a table too wide for that by columns.
Implementations§
Source§impl TableFormat
impl TableFormat
Sourcepub fn from_markdown_flag(markdown: bool) -> Self
pub fn from_markdown_flag(markdown: bool) -> Self
docling’s use_markdown_tables flag.
Trait Implementations§
Source§impl Clone for TableFormat
impl Clone for TableFormat
impl Copy for TableFormat
Source§impl Debug for TableFormat
impl Debug for TableFormat
Source§impl Default for TableFormat
impl Default for TableFormat
impl Eq for TableFormat
Source§impl PartialEq for TableFormat
impl PartialEq for TableFormat
impl StructuralPartialEq for TableFormat
Auto Trait Implementations§
impl Forget for TableFormat
impl Freeze for TableFormat
impl Move for TableFormat
impl RefUnwindSafe for TableFormat
impl Send for TableFormat
impl Sync for TableFormat
impl Unpin for TableFormat
impl UnsafeUnpin for TableFormat
impl UnwindSafe for TableFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.