pub struct ChunkingOptions {
pub use_markdown_tables: bool,
pub use_markdown_images: bool,
pub image_placeholder: String,
pub include_raw_text: bool,
pub max_tokens: Option<u32>,
pub tokenizer: Option<String>,
pub merge_peers: bool,
}Fields§
§use_markdown_tables: bool§use_markdown_images: bool§image_placeholder: String§include_raw_text: bool§max_tokens: Option<u32>§tokenizer: Option<String>§merge_peers: boolImplementations§
Source§impl ChunkingOptions
impl ChunkingOptions
pub fn hybrid_defaults() -> Self
pub fn hierarchical_defaults() -> Self
Trait Implementations§
Source§impl Clone for ChunkingOptions
impl Clone for ChunkingOptions
Source§fn clone(&self) -> ChunkingOptions
fn clone(&self) -> ChunkingOptions
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 ChunkingOptions
impl Debug for ChunkingOptions
Source§impl Default for ChunkingOptions
impl Default for ChunkingOptions
Source§fn default() -> ChunkingOptions
fn default() -> ChunkingOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChunkingOptions
impl<'de> Deserialize<'de> for ChunkingOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChunkingOptions
Source§impl PartialEq for ChunkingOptions
impl PartialEq for ChunkingOptions
Source§impl Serialize for ChunkingOptions
impl Serialize for ChunkingOptions
impl StructuralPartialEq for ChunkingOptions
Auto Trait Implementations§
impl Freeze for ChunkingOptions
impl RefUnwindSafe for ChunkingOptions
impl Send for ChunkingOptions
impl Sync for ChunkingOptions
impl Unpin for ChunkingOptions
impl UnsafeUnpin for ChunkingOptions
impl UnwindSafe for ChunkingOptions
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.